Description Usage Arguments Value
View source: R/log_prob_adaptive.R
This function calculates log of the conditional probability for a variable given its parents. It is used to obtain p(x|pa of x) in the numerator of the conditional prob p(T|Xs).
1 | log_prob_adaptive(data, targetIndex, condProbsAdpt)
|
data |
A dataset whost variables are in numeric/integer format. Any categorical variables must be converted into numeric/integer first. |
targetIndex |
The target node's index in vars, whose Markov blanket we are interested in. |
condProbsAdpt |
A conditional probabilities matrix that stores a variable's conditional probability at each data point. This variable is either the target, or has more than one parent. |
The function outputs a single log probability value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.