Description Usage Arguments Value Examples
View source: R/trainClassifier.R
Wrapper function for training one of the 8 classification algorithms using one of the three available metrics sets.
1 | trainClassifier(trainData, model, metricSet, hyperparameters)
|
trainData |
dataframe. Rows should correspond to peaks, columns should include peak quality metrics and class labels only. |
model |
Name of the classification algorithm to be trained from the eight available: DecisionTree, LogisiticRegression, NaiveBayes, RandomForest, SVM_Linear, AdaBoost, NeuralNetwork, and ModelAveragedNeuralNetwork. |
metricSet |
The metric set to be run with the selected model. Select from the following: M4, M7, and M11. |
hyperparameters |
dataframe of the tuned hyperparameters returned by runCrossValidation() |
a trained MetaClean model
1 2 3 4 5 | # train classification algorithms
best_model <- trainClassifier(trainData=pqMetrics_development,
model="AdaBoost",
metricSet="M11",
hyperparameters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.