ScoreDAG: Score DAG.

View source: R/scorer_funs.R

ScoreDAGR Documentation

Score DAG.

Description

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)


cia documentation built on April 4, 2025, 5:23 a.m.