|
|
| getClassifierCopy () |
| | Returns an instance of the current class after cleaning up OneVsRest stuff.
|
| |
| | predictProbability (array $sample, string $label) |
| | Each classifier that make use of OvR approach should be able to return a probability for a sample to belong to the given label.
|
| |
| | predictSample (array $sample) |
| |
| | predictSampleBinary (array $sample) |
| | Each classifier should implement this method instead of predictSample()
|
| |
|
| reset () |
| | Resets the classifier and the vars internally used by OneVsRest to create multiple classifiers.
|
| |
|
| resetBinary () |
| | To be overwritten by OneVsRest classifiers.
|
| |
|
| train (array $samples, array $targets) |
| | Train a binary classifier in the OvR style.
|
| |
|
| trainBinary (array $samples, array $targets, array $labels) |
| | Each classifier should implement this method instead of train(samples, targets)
|
| |
|
| trainByLabel (array $samples, array $targets, array $allLabels=[]) |
| |