BNLearnScorer: BNLearnScorer

View source: R/scorers.R

BNLearnScorerR Documentation

BNLearnScorer

Description

A thin wrapper on the bnlearn::score function.

Usage

BNLearnScorer(node, parents, ...)

Arguments

node

Name of node to score.

parents

The parents of node.

...

The ellipsis is used to pass other parameters to the scorer.

Value

A numeric value representing the log score of the node given the parents.

Examples

data <- bnlearn::learning.test
BNLearnScorer('A', c('B', 'C'), data = data)
BNLearnScorer('A', c(), data = data)
BNLearnScorer('A', vector(), data = data)
BNLearnScorer('A', NULL, data = data)
BNLearnScorer('A', c('B', 'C'), data = data, type = "bde", iss = 100)
BNLearnScorer('A', c('B', 'C'), data = data, type = "bde", iss = 1)


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