Skip to contents

This function runs a classifier in a given dataset

Usage

runClassifier(X, y, clf, x_test = NULL, y_test = NULL)

Arguments

X:

The dataset to classify

y:

The variable to predict

clf:

The classifier object containing the different settings of the classifier.

x_test:

if not NULL (default) this dataset will be used to evaluate the models in a subset for the feature importance

y_test:

if not NULL (default) this dataset will be used to evaluate the models in a subset for the feature importance

Value

the classifier along with the classification results as a sub-element