MLC {tabularMLC} | R Documentation |
Maximum Likelihood Classifier
Description
Function to create the classifier class from the training set
Usage
MLC(x, ...)
## S3 method for class 'formula'
MLC(formula, data = NULL, ...)
## Default S3 method:
MLC(x, y = NULL, ...)
Arguments
x |
feature vector for the training set |
... |
for other signatures |
formula |
|
data |
the dataset |
y |
factor vector with the training set labels |
Value
An object of class MLC.model
parameters used for the model
Examples
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)
[Package tabularMLC version 0.0.3 Index]