View source: R/NaiveBayesModel.r
NaiveBayesModel | R Documentation |
A function to train a Naive Bayes model to classify medulloblastoma subgroups using DNA methylation beta values (Illumina Infinium HumanMethylation450). Prediction is followed by training if new data is provided.
SplitRatio |
Train and test split ratio. A value greater or equal to zero and less than one. |
CV |
The number of folds for cross-validation. It should be greater than one. |
Threshold |
The threshold for deciding class probability. A value greater or equal to zero and less than one. |
NCores |
The number of cores for parallel computing. |
NewData |
A methylation beta values input from the ReadMethylFile function. |
A list
set.seed(123)
nb <- NaiveBayesModel(SplitRatio = 0.8,
CV = 2,
Threshold = 0.8,
NCores = 1,
NewData = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.