bnlearn 4.6支持根据changelog的自定义可分解分数。但是我不知道如何使用它。我试过net <- hc(df, score = "custom"),它给了我Error in check.custom.score.function(fun = extra.args$fun): missing the custom score function。有人知道如何将定制函数提供给hc吗?
发布于 2019-10-18 06:30:12
从bnlearn:::check.score.args那里弄明白的。你需要提供一个fun参数,比如net <- hc(df, score = "custom", fun=function(...) ...)。仅供参考,函数签名为function(node, parents, data, args)。
https://stackoverflow.com/questions/58438796
复制相似问题