HiddenMarkovModel

public final class HiddenMarkovModel implements SequenceClassifier<Int>

Constructors

Link copied to clipboard
public HiddenMarkovModel HiddenMarkovModel(    Map<Integer, String> labelMap,     Map<Integer, String> inputMap,     Float alpha,     Integer BegginingOfSentence)

Functions

Link copied to clipboard
public Unit fit(List<NDArray<Integer, D1>> X, List<NDArray<Integer, D1>> y)
Link copied to clipboard
public final Float getAlpha()
Link copied to clipboard
public final Integer getBegginingOfSentence()
Link copied to clipboard
public final NDArray<Float, D2> getEmissionMatrix()
Link copied to clipboard
public final Map<Integer, String> getInputMap()
Link copied to clipboard
public final Map<Integer, String> getLabelMap()
Link copied to clipboard
public final Integer getNUMBER_OF_TAGS()
Link copied to clipboard
public final NDArray<Float, D2> getTransitionMatrix()
Link copied to clipboard
public List<NDArray<Integer, D1>> predict(List<NDArray<Integer, D1>> X)
Link copied to clipboard
public final Unit setEmissionMatrix(NDArray<Float, D2> emissionMatrix)
Link copied to clipboard
public final Unit setNUMBER_OF_TAGS(Integer NUMBER_OF_TAGS)
Link copied to clipboard
public final Unit setTransitionMatrix(NDArray<Float, D2> transitionMatrix)

Properties

Link copied to clipboard
private final Float alpha
Link copied to clipboard
private final Integer BegginingOfSentence
Link copied to clipboard
private NDArray<Float, D2> emissionMatrix
Link copied to clipboard
private final Map<Integer, String> inputMap
Link copied to clipboard
private final Map<Integer, String> labelMap
Link copied to clipboard
private Integer NUMBER_OF_TAGS
Link copied to clipboard
private NDArray<Float, D2> transitionMatrix