public static class LinearClassifierFactory.LinearClassifierCreator<L,F> extends java.lang.Object implements ClassifierCreator, ProbabilisticClassifierCreator
Constructor and Description |
---|
LinearClassifierCreator(Index<F> featureIndex,
Index<L> labelIndex) |
LinearClassifierCreator(LogConditionalObjectiveFunction objective,
Index<F> featureIndex,
Index<L> labelIndex) |
Modifier and Type | Method and Description |
---|---|
Classifier |
createClassifier(double[] weights) |
LinearClassifier |
createLinearClassifier(double[] weights) |
ProbabilisticClassifier |
createProbabilisticClassifier(double[] weights) |
public LinearClassifierCreator(LogConditionalObjectiveFunction objective, Index<F> featureIndex, Index<L> labelIndex)
public LinearClassifier createLinearClassifier(double[] weights)
public Classifier createClassifier(double[] weights)
createClassifier
in interface ClassifierCreator
public ProbabilisticClassifier createProbabilisticClassifier(double[] weights)
createProbabilisticClassifier
in interface ProbabilisticClassifierCreator