sambofra / bnstruct

R package for Bayesian Network Structure Learning
GNU General Public License v3.0
17 stars 11 forks source link

Compute score of a learnt network #24

Closed indu-bodala closed 2 years ago

indu-bodala commented 2 years ago

Hi,

Is there a way that I can calculate the BIC/BDeu score of the learnt network or read the output of the scoring function somewhere?

albertofranzin commented 2 years ago

Hello,

the scoring functions are not exposed. They are implemented in C, and are accessed directly using .Call(). See for example line 75 of https://github.com/sambofra/bnstruct/blob/master/R/mmhc.R.

indu-bodala commented 2 years ago

Thank you for the response. I will see if I can work around it.