predict.bayesnet: Perform inference on network

Description Usage Arguments Value

Description

Perform inference on network

Usage

1
2
3
## S3 method for class 'bayesnet'
predict(net, evidence, num = 1000, update = FALSE,
  algorithm = "IS", algoSpecific = NULL)

Arguments

net

the network

evidence

vector of integers specifying known values of nodes. This can include NA values for unknown variables. You can also pass a data frame row as the function will cast it to numeric internally.

num

integer specifying the number of samples to used in inference

update

boolean specifying whether to update node parameters

algorithm

A string specifying a valid algorithm. "IS" = Importance sampling. "BS" = Backwards sampling "SU" = Selected uniform sampling "MC" = MCMC sampling

algoSpecific

An algorithm specific object:

Value

updated network with a posterior probabilities object as field posterior


mickash/Adaptive-Bayesian-Networks documentation built on Nov. 14, 2019, 12:14 a.m.