This dataframe contains a cache of pre-computed scores with a maximum of two parents per node for the asia dataset.

bsc.compute.asia

Format

The data contains a cache of pre-computed scores with a maximum of two parents per node using buildScoreCache from the abn R package.

  • bsc.compute.asia: cache of score with a maximum of two parents per node.

Examples

## This data set was generated using the following code:
data(asia, package='bnlearn') # for the dataset
library("abn")     # for the cache of score function
#> abn version 2.7-1 (2022-04-21) is loaded.

# Renaming columns of the dataset
colnames(asia) <- c("Asia",
  "Smoking",
  "Tuberculosis",
  "LungCancer",
  "Bronchitis",
  "Either",
  "XRay",
  "Dyspnea")

bsc.compute.asia <- buildScoreCache(data.df = asia,
                                 data.dists = dist.asia,
                                 max.parents = 2)