Learn R Programming

CRImage (version 1.20.0)

createClassifier: Construction of a classifier

Description

Creates a classifier for a training set.

Usage

createClassifier(trainingData, cross = FALSE)

Arguments

trainingData
A table, created by segmentImage with manually added classes.
cross
Does 10-fold cross validation to test the classifiers performance.

Value

A List containing:
classifier
The classifier
performance
cross validation performance

Details

Topological features include the density of cells and the size of the surrounding cytoplasma of a cell. These features depend on the size of the image. If training image and the image to classify have different size, these features can fool the classification and should not be enabled.

See Also

'createTrainingSet','classifyCells'

Examples

Run this code
f = system.file("extdata", "trainingData.txt", package="CRImage")
#read training data
trainingData=read.table(f,header=TRUE)
#create classifier
classifier=createClassifier(trainingData)[[1]]

Run the code above in your browser using DataLab