Description Usage Arguments Value Examples
View source: R/runClassifier.R
Run the classifier on a training set and measure performance on a validation set.
1 2 3 4 5 6 7 8 | runClassifier(
trainingSet,
validationSet,
params,
classifierAlgorithm,
metric = "acc",
interp = 0
)
|
trainingSet |
Dataframe of the training set. |
validationSet |
Dataframe of the validation Set. |
params |
A string character of parameter configuration values for the current classifier to be tuned (parameters are separated by #) and can be obtained from |
classifierAlgorithm |
String character of the name of classifier algorithm used now.
|
metric |
Metric string character to be used in evaluation:
|
interp |
Boolean representing if interpretability is required or not (Default = 0). |
List of performance on validationSet named perf
, model fitted on trainingSet named m
, predictions on test set pred
, and interpretability plots named interpret
in case of interp = 1
1 2 3 4 5 6 | ## Not run:
result1 <- autoRLearn(10, 'sampleDatasets/shuttle/train.arff', 'sampleDatasets/shuttle/test.arff')
dataset <- datasetReader('/Datasets/irisTrain.csv', '/Datasets/irisTest.csv')
result2 <- runClassifier(dataset$Train, dataset$Test, result1$params, result1$clfs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.