Score labelled partition
Examples
data <- bnlearn::learning.test
dag <- UniformlySampleDAG(names(data))
partitioned_nodes <- DAGtoPartition(dag)
scorer <- CreateScorer(
scorer = BNLearnScorer,
data = data
)
ScoreLabelledPartition(partitioned_nodes, scorer)
#> [1] -24126.3