Skip to content

0.5.0

Compare
Choose a tag to compare
@erdogant erdogant released this 02 Jan 22:27
· 416 commits to master since this release
  • implementation of bnlearn.independence_test functionality that allows to compute edge strength
  • plots improved for the edge weights
  • more pep styling
  • some code refactoring
# Example:

# Load asia DAG
df = bn.import_example(data='alarm')
# Structure learning of sampled dataset
model = bn.structure_learning.fit(df)
# Compute edge strength with the chi_square test statistic. Set prune=True to remove the none-significant edges.
model = bn.independence_test(model, df, test='chi_square', prune=False)
# Make plot
bn.plot(model)