createClassifier {CRImage} | R Documentation

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

### 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

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

[Package CRImage version 1.30.0 Index]