Skip to contents

Score DAG.

Usage

ScoreDAG(dag, scorer)

Arguments

dag

Adjacency matrix of (parent, child) entries with 1 denoting an edge and 0 otherwise.

scorer

Scorer object.

Value

Log of DAG score.

Examples

dag <- UniformlySampleDAG(names(bnlearn::asia))
scorer <- CreateScorer(data = bnlearn::asia)
ScoreDAG(dag, scorer)
#> [1] -11742.62