Closed Mr-Styles closed 1 year ago
Can you demonstrate your issue with an example?Here are the docs with examples that should work.
I used your introduction examples:
model_hc_bic = bn.structure_learning.fit(train_df, methodtype='hc', scoretype='bic')
model_hc_bic['adjmat']
G = bn.plot(model_hc_bic)
Result: Ajacemcy all FALSE. [bnlearn] >Computing best DAG using [hc] [bnlearn] >Set scoring type at [bic] [bnlearn] >Compute structure scores for model comparison (higher is better). [bnlearn]> Nothing to plot because no edges are present between nodes.
While not the same package, the R version of BNLearn works on this data.
Which of the training examples is train_df?
Which of the training examples is train_df?
My own data; HillClimbSearch using pgmpy provides a structure as does the unrelated R library.
I am closing this issue. When you have a working example to demonstrate this issue, feel free to re-open it. At this point, there is nothing I can do.
Does not matter how I edit the data I'm using, running structured learning produces nothing; just with statistical noise some structure would have emerged.