predictor-class {cancerclass} | R Documentation

## Class "predictor"

### Description

An object of this class is returned by the function `predict(...)` and represents a nearest centroid predictor learned on a training data set.

### Objects from the Class

Objects can be created by the call `new("predictor", ...)`.

### Slots

`predictor`:

  Object of class `"predictor"`

`cl`:

  Character string or number specifying one of the two classes.

`method`:

  Character string specifying the feature selection method that was used for predictor construction: Possible values are "cor", "student.test", "welch.test", "wilcoxon.test", "foldchange", "copa", "os", "ort", "shift", "throw".

`hparam`:

  Hyperparameter needed for some of the feature selection methods. For methods copa, ors and os: Quantile (e.g. 0.75, 0.9, 0.95) used in order to detect outliers. For methods shift and throw: the minimum number of samples in each class after applying shift or throw.

`type`:

  Type of calculation. Loo (leave one out) or prediction (simple prediction).

`fdata`:

  Feature annotations inherited from the training ExpressionSet.

### Methods

`plot`A plot method is only avaiable for the score "zeta" that is a linear combination of features.

### See Also

See Also as `fit`, or `predictor` for links to other classes

### Examples

    showClass("predictor")

[Package cancerclass version 1.31.0 Index]