Description Usage Arguments Value
View source: R/probs_adaptive.R
This function calculates probability at each data point for a variable that has no parent. Noticing we only consider no parents variable when it is the target.
1 | probs_adaptive(data, arities, sampleSize, probsMtx, curIndex)
|
data |
A dataset whost variables are in numeric/integer format. Any categorical variables must be converted into numeric/integer first. |
arities |
A vector of variable arities in data, in the same order as the column names of data. |
sampleSize |
The sample size. That is, the number of rows of data. |
probsMtx |
probsMtx |
curIndex |
The current variable's index. The current variable can either be the target or a different variable. |
The function outputs a matrix of probabilities with dimension arity(curIndex) = arity(target) by sample size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.