christioan
Programmer
I implemented a ID3-algorithm in Prolog.
I have following attributes:
genre: action, komödie, thriller, comic
actor: snips, willis, carrey
dtt: dvd, vhs
zustellung: normal, express
If I use my ID3-algorithm I will get the following result:
tree(internal(action), [komödie-tree(internal(dvd), [vhs-leaf(p), dvd-leaf]), action-tree(internal(willis), [willis-leaf(p), snips-leaf, carrey-leaf(p)]), thriller-tree(internal(willis), [willis-tree(internal(zustellung), [express-leaf, normal-leaf(p)]), snips-leaf(p)]), comic-leaf(p)]).
How can I use the tree to get a specific solution from my database????
Thx
I have following attributes:
genre: action, komödie, thriller, comic
actor: snips, willis, carrey
dtt: dvd, vhs
zustellung: normal, express
If I use my ID3-algorithm I will get the following result:
tree(internal(action), [komödie-tree(internal(dvd), [vhs-leaf(p), dvd-leaf]), action-tree(internal(willis), [willis-leaf(p), snips-leaf, carrey-leaf(p)]), thriller-tree(internal(willis), [willis-tree(internal(zustellung), [express-leaf, normal-leaf(p)]), snips-leaf(p)]), comic-leaf(p)]).
How can I use the tree to get a specific solution from my database????
Thx