public abstract class AbstractPredictor extends Object implements Predictor
| Constructor and Description |
|---|
AbstractPredictor() |
| Modifier and Type | Method and Description |
|---|---|
int |
extractPredictedClass(de.jungblut.math.DoubleVector predict)
Given an already done prediction, choose the class.
|
int |
extractPredictedClass(de.jungblut.math.DoubleVector predict,
double threshold)
Given an already done prediction, choose the class with a threshold.
|
int |
predictedClass(de.jungblut.math.DoubleVector features)
Classifies the given features.
|
int |
predictedClass(de.jungblut.math.DoubleVector features,
double threshold)
Classifies the given features.
|
de.jungblut.math.DoubleVector |
predictProbability(de.jungblut.math.DoubleVector features)
Classifies the given features.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasClassifier, predictpublic int predictedClass(de.jungblut.math.DoubleVector features,
double threshold)
PredictorpredictedClass in interface Predictorthreshold - the threshold for the prediction "probability". In the
sigmoid and binary case, you want to set everything greater (>)
0.5 to 1d and everything below (<=) to 0d.public int predictedClass(de.jungblut.math.DoubleVector features)
PredictorpredictedClass in interface Predictorpublic de.jungblut.math.DoubleVector predictProbability(de.jungblut.math.DoubleVector features)
PredictorpredictProbability in interface Predictorpublic int extractPredictedClass(de.jungblut.math.DoubleVector predict)
PredictorextractPredictedClass in interface Predictorpublic int extractPredictedClass(de.jungblut.math.DoubleVector predict,
double threshold)
PredictorextractPredictedClass in interface PredictorCopyright © 2016. All rights reserved.