MLC {tabularMLC} | R Documentation |
Function to create the classifier class from the training set
MLC(x, ...) ## S3 method for class 'formula' MLC(formula, data = NULL, ...) ## Default S3 method: MLC(x, y = NULL, ...)
x |
feature vector for the training set |
... |
for other signatures |
formula |
|
data |
the dataset |
y |
factor vector with the training set labels |
An object of class MLC.model
parameters used for the model
data(iris) x = iris[, -5] y = iris$Species # Default x y interface mlcModel1 = MLC(x, y) # Formula interface mlcModel2 = MLC(Species ~ Petal.Length + Petal.Width, iris) # Formula except one column mlcModel3 = MLC(Species ~ . - Sepal.Length, iris)