public class Viterbi
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Viterbi(org.nd4j.linalg.api.ndarray.INDArray possibleLabels)
The possible outcomes for the chain.
|
Modifier and Type | Method and Description |
---|---|
Pair<java.lang.Double,org.nd4j.linalg.api.ndarray.INDArray> |
decode(org.nd4j.linalg.api.ndarray.INDArray labels)
Decodes the given labels, assuming its a binary label matrix
|
Pair<java.lang.Double,org.nd4j.linalg.api.ndarray.INDArray> |
decode(org.nd4j.linalg.api.ndarray.INDArray labels,
boolean binaryLabelMatrix)
Decodes a series of labels
|
double |
getLogMetaInstability() |
double |
getLogOfDiangnalTProb() |
double |
getLogPCorrect() |
double |
getLogPIncorrect() |
double |
getLogStates() |
double |
getMetaStability() |
double |
getpCorrect() |
org.nd4j.linalg.api.ndarray.INDArray |
getPossibleLabels() |
int |
getStates() |
void |
setLogMetaInstability(double logMetaInstability) |
void |
setLogOfDiangnalTProb(double logOfDiangnalTProb) |
void |
setLogPCorrect(double logPCorrect) |
void |
setLogPIncorrect(double logPIncorrect) |
void |
setLogStates(double logStates) |
void |
setMetaStability(double metaStability) |
void |
setpCorrect(double pCorrect) |
void |
setPossibleLabels(org.nd4j.linalg.api.ndarray.INDArray possibleLabels) |
void |
setStates(int states) |
public Viterbi(org.nd4j.linalg.api.ndarray.INDArray possibleLabels)
possibleLabels
- the possible labels of the markov chainpublic Pair<java.lang.Double,org.nd4j.linalg.api.ndarray.INDArray> decode(org.nd4j.linalg.api.ndarray.INDArray labels)
labels
- the labels as a binary label matrixpublic Pair<java.lang.Double,org.nd4j.linalg.api.ndarray.INDArray> decode(org.nd4j.linalg.api.ndarray.INDArray labels, boolean binaryLabelMatrix)
labels
- the labels to decodebinaryLabelMatrix
- whether the label is a binary label matrixpublic double getMetaStability()
public void setMetaStability(double metaStability)
public double getpCorrect()
public void setpCorrect(double pCorrect)
public org.nd4j.linalg.api.ndarray.INDArray getPossibleLabels()
public void setPossibleLabels(org.nd4j.linalg.api.ndarray.INDArray possibleLabels)
public int getStates()
public void setStates(int states)
public double getLogPCorrect()
public void setLogPCorrect(double logPCorrect)
public double getLogPIncorrect()
public void setLogPIncorrect(double logPIncorrect)
public double getLogMetaInstability()
public void setLogMetaInstability(double logMetaInstability)
public double getLogOfDiangnalTProb()
public void setLogOfDiangnalTProb(double logOfDiangnalTProb)
public double getLogStates()
public void setLogStates(double logStates)