, PEXPERT. , , PROSPECTOR, . PEXPERT.PRO PEXPERT. : JOURNEY.KBS, WEATHER.KBS ANIMALS.KBS. JOURNEY.KBS , : , . WEATHER.KBS , . ANIMALS.KBS .
, PEXPERT, (. 1).
. 1.
, . , . Hypothesis rules , . , , .
Data rules ( ). , I ntermediate rules. , : , . I ntermediate rules.
, . . , . , (certainty). , , [2]. PEXPERT : , 5, 0; , 0, 0.5 +5 1.
JOURNEY.KBS. , : ( ); ( ); ( ) . : (train), (plane) (car); -:
hypothesis train
display "Use a train"
|
|
bayes rail_factors inc 1.1 dec 1
drive_yourself inc 1.1 dec 1
rail_speed inc 1.1 dec 0.1
rail_dist inc 2 dec 1
rail_cost inc 5 dec 1
hypothesis plane
display "Use a plane"
bayes plane_factors inc 1 dec 0.001
plane_speed inc 5 dec 1
plane_cost inc 5 dec 0.5
plane_dist inc 10 dec 0.9
hypothesis car
display "Use a car"
bayes car_factors inc 1 dec 0.9
car_speed inc 5 dec 0.9
car_dist inc 2 dec 0.8
car_cost inc 3 dec 0.9
, , , , , display, , Use a car ( ).
BAYES , , , car. , . , BAYES, car_speed, c ar_dist, car_cost, inc dec, . ,
car_speed inc 5 dec 0.9
inc 5 , , car_speed car. , dec 0.9 , , car_speed car. , . , inc 1, dec 0 1. , inc dec. inc dec .
, , rail. , : rail_factors, drive_yourself, rail_speed, rail_dist rail_cost:
intermediate rail_factors
display "use of a train is appropriate"
and drive_yourself
rail_speed
rail_dist
rail_cost
intermediate rail_speed
display "Desired journey speed permits rail use"
map speed (60 1) (150 0)
context drive_yourself 5 0
intermediate rail_dist
display "Is the use of a train sensible"
map distance (50 0) (200 1) (350 0)
context drive_yourself 5 0
intermediate rail_cost
display "Desired cost per mile is possible using a train"
map cost (10 0) (20 1)
context drive_yourself 5 0
rail_factors , ( and) : (drive_yourself), (rail_speed), (rail_dist) (rail_cost).
, drive_yourself, data -. yesno -, , :
data drive_yourself
display "Do you want to drive yourself?"
yesno
, , .
|
|
Do you want to drive yourself? ( ?)
:
Yes
No
Dont know
Yes 1, No 0 Dont know 0,5.
rail_speed map, , -, speed, -, /: 60 1, 150 0. 60 150 1 0. , (, , ) , drive_yourself , 5 0, . context.
speed data -. : ? , , 1 1300:
data speed
display "What is the required average speed for the journey (mph)?"
value 1 1300
data - :
data distance
display "What is the distance of the journey in miles?"
value 0.1 30000
data cost
display "How much are you prepared to pay per mile?"
help "This system assumes the costs:
plane: 30 cents/mile
train: 25 cents/mile
car: 20 cents/mile"
value 1 50
data - help, .