6.825 - Techniques in Artificial Intelligence, Fall '04
Project 2: FAQ
Questions and hints
Can I use a Bayes Nets toolbox that someone else has
implemented?
No! You will need to hand in code that you implemented on
your own, and the code that you hand in *must* have been what
generated all of the results you report.
I'm getting a "should be sorted and unique" exception. What's
wrong?
When creating a FunctionVariableSet, the variables in your
FunctionVariable array must be in lexicographic order and each of
them must occur at most once.
I get an error like this: Two FunctionVariables named Mileage have different
domains!
Try retrieving variables from the network instead of using the
FunctionVariable constructor (it makes the domain binary by
default):
var = bn.nodes.getNode("Mileage").var
Where can I find all the source code?
Unzip the jar file (jar -xf BN.jar) and then look in src/