BNDataset
from a network of an inference engine.sample a BNDataset
from a network of an inference engine.
sample.dataset(x, n = 100, mar = 0)# S4 method for BN
sample.dataset(x, n = 100, mar = 0)
# S4 method for InferenceEngine
sample.dataset(x, n = 100)
a BNDataset
a BN
or InferenceEngine
object.
number of items to sample.
fraction [0,1] of missing values in the sampled dataset (missing at random), default value is 0 (no missing values).