0.5.0
- 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)