createClassifier: Construction of a classifier

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/createClassifier.R

Description

Creates a classifier for a training set.

Usage

1
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.

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.

Value

A List containing:

classifier

The classifier

performance

cross validation performance

Author(s)

Henrik Failmezger, failmezger@mpipz.mpg.de

See Also

'createTrainingSet','classifyCells'

Examples

1
2
3
4
5
f = system.file("extdata", "trainingData.txt", package="CRImage")
#read training data
trainingData=read.table(f,header=TRUE)
#create classifier
classifier=createClassifier(trainingData)[[1]]

CRImage documentation built on Nov. 8, 2020, 8:01 p.m.