Bnlearn

Latest version: v0.10.2

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 14

0.7.2

* improved speed in `predict` functionality
* Add `scoretype `to `parameter_learning`

0.7.1

* smooth parameter added to `parameter_learning`


import bnlearn as bn
DAG = bn.import_DAG('water', verbose=0)
Sampling
df = bn.sampling(DAG, n=1000)
Parameter learning
model = bn.parameter_learning.fit(DAG, df, smooth=None)

0.7.0

* Fix for plotting due to new version of ``networkx``. The version of ``networkx`` should be >= 2.7.1
* Layout can now be changed more easily
* figsize added as an input parameter which is more convenient than width/height.


import bnlearn as bn
df = bn.import_example('asia')
model = bn.structure_learning.fit(df)
Plot
bn.plot(model)
Plot with different layouts
bn.plot(model, params_static={'layout':'spectral_layout'})
bn.plot(model, params_static={'layout':'planar_layout'})
bn.plot(model, params_static={'layout':'kamada_kawai_layout'})
bn.plot(model, params_static={'layout':'spring_layout'})
bn.plot(model, params_static={'layout':'circular_layout', "figsize": (15, 10)})

0.6.3

* added `pyvis `to setup file and requirements.

0.6.2

* fix for `bn.print_CPD()`
* name convention: bayesianmodel into bayesiannetwork

0.6.1

* Name convention: BayesianModel is changed into BayesianNetwork

Page 6 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.