Skip to content

Releases: erdogant/bnlearn

0.4.0

31 Aug 17:27
Compare
Choose a tag to compare
  • 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

29 Aug 21:54
Compare
Choose a tag to compare
  • 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

13 Jul 15:00
Compare
Choose a tag to compare
  • 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

0.3.20

12 Jun 17:40
Compare
Choose a tag to compare
  • Functionally added to make predictions on dataset with the predict function #17
  • Predict examples can be found in the readme and sphinx pages: https://erdogant.github.io/bnlearn/pages/html/Predict.html
  • Functionally added that outputs a dataframe with the results for the inference that is made (query2df)
  • Included some exceptions to catch errors
  • Fixed circular imports
  • Unit test updated for the new functions
  • Some docstrings updated
  • Some code refactoring and cleaning

0.3.19

09 Jun 09:05
Compare
Choose a tag to compare

0.3.18

07 Jun 19:58
Compare
Choose a tag to compare
  • Fix for the maximum likelihood estimation in parameter learning using the model.fit approach (thanks to ssomanch)

0.3.17

10 Mar 20:27
Compare
Choose a tag to compare
  • Fix typo in pip install instructions
    Thanks to the contribution of bencevans!

0.3.16

07 Mar 11:19
Compare
Choose a tag to compare
  • tabu_length is configurable in hill climb search (Thanks to contribution of ivylee!)

0.3.15

09 Feb 21:48
Compare
Choose a tag to compare
  • the use of black_list and white_list requires setting parameter method type
  • update unit test
  • update sphinx docs

0.3.14

02 Feb 16:54
Compare
Choose a tag to compare
  • Better variable naming in "sampling" function.
  • Fix for minimum requirement matplotlib