A thin wrapper on the bnlearn::score function.
Examples
data <- bnlearn::learning.test
BNLearnScorer('A', c('B', 'C'), data = data)
#> [1] -4395.422
BNLearnScorer('A', c(), data = data)
#> [1] -5501.568
BNLearnScorer('A', vector(), data = data)
#> [1] -5501.568
BNLearnScorer('A', NULL, data = data)
#> [1] -5501.568
BNLearnScorer('A', c('B', 'C'), data = data, type = "bde", iss = 100)
#> [1] -4374.008
BNLearnScorer('A', c('B', 'C'), data = data, type = "bde", iss = 1)
#> [1] -4403.79