erdogant / bnlearn

Python library for learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods.
https://erdogant.github.io/bnlearn
Other
463 stars 45 forks source link

Input variable ordering. #69

Closed sidjr2 closed 9 months ago

sidjr2 commented 1 year ago

Hey, how are you? I'm doing a research with HC and K2 algorithm. However, I'm little confused about how the reading of the file is done (dataset). It is done in order of writing or randomly?

erdogant commented 1 year ago

Can you maybe demonstrate your point with an example?

sidjr2 commented 1 year ago

My problem is discover when I create the dataframe, what is the process used to read the data. If using a random draw, how and when this sortition is made. I would like to optimize the algorithm for unknown data and I need to know how the reading process is made and how can I optimize it.

erdogant commented 1 year ago

Some methods that are used, such as HC and K2 rely on the pgmpy package. The best manner to exactly figure this out, is to step-wise debug through the code. Spyder can be helpful for debugging.