score.dbn: Computes the score of a BN or a DBN

View source: R/bnlearn_compat.R

score.dbnR Documentation

Computes the score of a BN or a DBN

Description

Generic method for computing the score of a "dbn" S3 object. Calls bnlearn's score underneath. The nodes function is specifically coded to look for either the "bn" or the "bn.fit" method inside bnlearn, so I have to cast the "dbn" class into "bn" for it to work.

Usage

## S3 method for class 'dbn'
score(object, ...)

Arguments

object

a "dbn" object

...

additional parameters

Value

the score of the network


dbnR documentation built on June 22, 2024, 10:54 a.m.