Example usage for Java org.apache.mahout.classifier.df.data Dataset fields, constructors, methods, implement or subclass
The text is from its open source code.
double | getLabel(Instance instance) |
int | getLabelId() |
String | getLabelString(double code) Returns the label value in the data This method can be used when the criterion variable is the categorical attribute. |
boolean | isNumerical(int attr) Is this a numerical attribute ? |
String[] | labels() |
Dataset | load(Configuration conf, Path path) Loads the dataset from a file |
int | nblabels() |
String | toJSON() Serialize this instance to JSON |