pgmpy / pgmpy_notebook

Short Tutorial to Probabilistic Graphical Models(PGM) and pgmpy
http://pgmpy.org/
MIT License
368 stars 213 forks source link

Editing the outdated methods and fixing a problem in the predict block #4

Closed aelnouby closed 8 years ago

aelnouby commented 8 years ago

While going through this notebook this line was passing the parameters in what it seems outdated way print(model.query(variables=['P'], conditions={'L': {0}, 'F': {0}, 'A': {0}}))

Also this block had some problems test_data = data[0.75 * data.shape[0] : data.shape[0]] test_data.drop('P', axis=1, inplace=True) model.predict(test_data)