getPrediction: Classifies data points to ine of three animal classes

Description Usage Arguments Value Examples

Description

Function takes input of points and classifies them into one of three classes: Cats, Dogs and Maggots.

Usage

1
getPrediction(animalsDF)

Arguments

animalsDF

A data frame of simulated points representing three classes along with their classes and dummy categorical variables corresponding to each class.

Value

List of predicted labels along with regression information of the three animal classes

Examples

1
2
3
4
5
6
noAnimals <- c(200, 200, 200)
rho  <- c(-0.2, 0.8, 0.02)
sdXY <- list(c(2, 8), c(3.5, 12), c(1, 3))
muXY <- list(c(6, 30), c(12, 50), c(4,10))
animalsDF <- animals(rho, sdXY, muXY, noAnimals)
predictionList <- getPrediction(animalsDF)

rishi1226/lClass documentation built on May 27, 2019, 9:10 a.m.