org.apache.mahout.classifier.sgd
Interface RecordFactory
- All Known Implementing Classes:
- CsvRecordFactory
public interface RecordFactory
A record factor understands how to convert a line of data into fields and then into a vector.
defineTargetCategories
void defineTargetCategories(java.util.List<java.lang.String> values)
maxTargetValue
RecordFactory maxTargetValue(int max)
usesFirstLineAsSchema
boolean usesFirstLineAsSchema()
processLine
int processLine(java.lang.String line,
Vector featureVector)
getPredictors
java.lang.Iterable<java.lang.String> getPredictors()
getTraceDictionary
java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> getTraceDictionary()
includeBiasTerm
RecordFactory includeBiasTerm(boolean useBias)
getTargetCategories
java.util.List<java.lang.String> getTargetCategories()
firstLine
void firstLine(java.lang.String line)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.