bsc-compute-asia.Rd 1.07 KB
Newer Older
Gilles Kratzer's avatar
Gilles Kratzer committed
1
2
3
4
5
6
7
8
\name{bsc.compute.asia}
\docType{data}
\alias{bsc.compute.asia}

\title{Cache of pre-computed scores related to the asia dataset}
\description{This dataframe contains a cache of pre-computed scores with a maximum of two parents per node for the asia dataset.
}

9
     \usage{bsc.compute.asia}
Gilles Kratzer's avatar
Gilles Kratzer committed
10
11

\format{
12
     The data contains a cache of pre-computed scores with a maximum of two parents per node using \link[abn:build_score_cache]{buildscorecache} from the \code{abn} R package.
Gilles Kratzer's avatar
Gilles Kratzer committed
13
14
15
16
17
18
     \itemize{
     \item \code{bsc.compute.asia}: cache of score with a maximum of two parents per node.
     }}

\examples{
## This data set was generated using the following code:
Reinhard Furrer's avatar
details    
Reinhard Furrer committed
19
20
library("bnlearn") # for the dataset
library("abn")     # for the cache of score function
Gilles Kratzer's avatar
Gilles Kratzer committed
21

Reinhard Furrer's avatar
details    
Reinhard Furrer committed
22
# Renaming columns of the dataset
Gilles Kratzer's avatar
Gilles Kratzer committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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)
}

\keyword{datasets}