Published January 2, 2020
| Version 0.3.22
Software
Open
bnlearn - Library for Bayesian network learning and inference
Creators
Description
- Fix for plotting due to new version of networkx. But the version should now 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)})
Notes
Files
erdogant/bnlearn-0.7.0.zip
Files
(19.0 MB)
Name | Size | Download all |
---|---|---|
md5:c67ce42ece679682646875c7466e83e3
|
19.0 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/erdogant/bnlearn/tree/0.7.0 (URL)