edu.stanford.nlp.classification.internal
Interface IClassifierFactory
- public interface IClassifierFactory
IClassifierFactory objects take training data and return
IClassifier objects.
- Since:
- 1.0
Method Summary |
IClassifier |
trainClassifier(double[][] data,
int[] labels)
Takes a training set in the form of a 2D double array (data x
features) and labels in the form of a 1D int array (data) and
produces a classifier over the same space. |
trainClassifier
public IClassifier trainClassifier(double[][] data,
int[] labels)
- Takes a training set in the form of a 2D double array (data x
features) and labels in the form of a 1D int array (data) and
produces a classifier over the same space.
- Parameters:
data
- a training matrixlabels
- a vector of correct class IDs
- Returns:
- an IClassifier object
Stanford NLP Group