public class FloatVectorLabelParser extends NumberVectorLabelParser<FloatVector>
Provides a parser for parsing one point per line, attributes separated by whitespace.
Numerical values in a line will be parsed as double values but used in float precision only.
Several labels may be given per point. A label must not be parseable as double. Lines starting with "#" will be ignored.
An index can be specified to identify an entry to be treated as class label. This index counts all entries (numeric and labels as well) starting with 0.
Modifier and Type | Class and Description |
---|---|
static class |
FloatVectorLabelParser.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
private static Logging |
logger
Class logger
|
curlbl, curvec, dimensionality, DIMENSIONALITY_UNKNOWN, DIMENSIONALITY_VARIABLE, factory, LABEL_INDICES_ID, labelIndices, lineNumber, meta, nextevent, VECTOR_TYPE_ID
ATTRIBUTE_CONCATENATION, COLUMN_SEPARATOR_ID, COMMENT, NUMBER_PATTERN, QUOTE_CHAR, QUOTE_ID, quoteChar, WHITESPACE_PATTERN
Constructor and Description |
---|
FloatVectorLabelParser(Pattern colSep,
char quoteChar,
BitSet labelIndices)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the logger for this class.
|
buildMeta, createDBObject, data, getMeta, getTypeInformation, initStream, nextEvent, parseLineInternal
parse
tokenize, toString
private static final Logging logger
protected Logging getLogger()
AbstractParser
getLogger
in class NumberVectorLabelParser<FloatVector>