MLC: Maximum Likelihood Classifier

Description Usage Arguments Value Examples

View source: R/MLC.R

Description

Function to create the classifier class from the training set

Usage

1
2
3
4
5
6
7
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

formula. The formula for defining the model.

data

the dataset

y

factor vector with the training set labels

Value

An object of class MLC.model parameters used for the model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

tabularMLC documentation built on Oct. 5, 2021, 9:07 a.m.