public interface DataPoint
Modifier and Type | Method and Description |
---|---|
FeatureMap |
getFeatureRepresentation(FeatureDictionary dict,
boolean addFeaturesToDictionary)
Return the FeatureMap for this DataPoint.
|
FeatureMap getFeatureRepresentation(FeatureDictionary dict, boolean addFeaturesToDictionary)
dict
- the FeatureDictionary that shall be used.addFeaturesToDictionary
- this should be set to true during
training, because then unknown features should be added to the
FeatureDictionary. Outside training this should be set to false because
then we want to treat every unknown feature as zero implicitly.Copyright © 2014. All rights reserved.