Skip to contents

Score labelled partition

Usage

ScoreLabelledPartition(partitioned_nodes, scorer)

Arguments

partitioned_nodes

Labelled partition.

scorer

Scorer object.

Value

Log of the node score.

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