* Added functionality to save and load models! * Examples: https://erdogant.github.io/bnlearn/pages/html/saving%20and%20loading.html
update to the latest version with: `pip install -U bnlearn`
0.4.1
* added interactive plot with pyvis using the plot functionality with parameter `bn.plot(model, interactive=True)`
import bnlearn as bn df = bn.import_example() Structure learning model = bn.structure_learning.fit(df) bn.plot(model, interactive=True)
0.4.0
* Included fixed_edges when using `methodtype='hc'` * Changed the bw_list_method for clarity. * bw_list_method='enforce' into bw_list_method='edges' * bw_list_method='filter' into bw_list_method='nodes' * Some docstring updates * Some code cleaning
Note that `bw_list_method='nodes'` works for all methodtypes and `bw_list_method='edges'` only when `methodtype='hc'`
0.3.22
* Added new tree search based structure learning method: Tree-augmented Naive Bayes (TAN)
Example
import bnlearn as bn df = bn.import_example() Structure learning with TAN model = bn.structure_learning.fit(df, methodtype='tan', root_node='Cloudy', class_node='Rain') bn.plot(model)
0.3.21
* Fix for scoring_method that occured in newer versions from pgmpy/python * Fix for return_type in forward_sampling * removed examples from library and included functionality to auto-download * Update of requirements * Update unit test * Some code refactoring