public final class MaxEntMarkovModel extends AbstractClassifier
| Constructor and Description |
|---|
MaxEntMarkovModel(de.jungblut.math.dense.DenseDoubleMatrix theta,
int classes) |
MaxEntMarkovModel(Minimizer minimizer,
int numIterations,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
de.jungblut.math.DoubleMatrix |
getTheta() |
de.jungblut.math.DoubleMatrix |
predict(de.jungblut.math.DoubleMatrix features,
de.jungblut.math.DoubleMatrix featuresPerState) |
de.jungblut.math.DoubleVector |
predict(de.jungblut.math.DoubleVector features)
Classifies the given features.
|
de.jungblut.math.DoubleVector |
predict(de.jungblut.math.DoubleVector feature,
de.jungblut.math.DoubleVector[] featuresPerState) |
void |
train(de.jungblut.math.DoubleVector[] features,
de.jungblut.math.DoubleVector[] outcome)
Trains this classifier with the given features and the outcome.
|
trainextractPredictedClass, extractPredictedClass, predictedClass, predictedClass, predictProbabilityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasClassifier, extractPredictedClass, extractPredictedClass, predictedClass, predictedClass, predictProbabilitypublic MaxEntMarkovModel(Minimizer minimizer, int numIterations, boolean verbose)
public MaxEntMarkovModel(de.jungblut.math.dense.DenseDoubleMatrix theta,
int classes)
public void train(de.jungblut.math.DoubleVector[] features,
de.jungblut.math.DoubleVector[] outcome)
Classifiertrain in interface Classifiertrain in class AbstractClassifieroutcome - the outcome must have classes labeled as doubles. E.G. in
the binary case you have a single element and decide between 0d
and 1d. In higher dimensional cases you have each of these single
elements mapped to a dimension.public de.jungblut.math.DoubleVector predict(de.jungblut.math.DoubleVector features)
Predictorpublic de.jungblut.math.DoubleMatrix getTheta()
public de.jungblut.math.DoubleVector predict(de.jungblut.math.DoubleVector feature,
de.jungblut.math.DoubleVector[] featuresPerState)
public de.jungblut.math.DoubleMatrix predict(de.jungblut.math.DoubleMatrix features,
de.jungblut.math.DoubleMatrix featuresPerState)
Copyright © 2016. All rights reserved.