@Deprecated public class DoubleVectorLabelParser extends NumberVectorLabelParser<DoubleVector>
Provides a parser for parsing one point per line, attributes separated by whitespace.
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 |
DoubleVectorLabelParser.Parameterizer
Deprecated.
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Deprecated.
Class logger
|
attributes, columnnames, curlbl, curvec, factory, haslabels, labelcolumns, labelIndices, labels, lineNumber, maxdim, meta, mindim, nextevent, unique
ATTRIBUTE_CONCATENATION, comment, COMMENT_PATTERN, DEFAULT_SEPARATOR, NUMBER_PATTERN, QUOTE_CHARS, tokenizer
Constructor and Description |
---|
DoubleVectorLabelParser()
Deprecated.
Constructor with default values.
|
DoubleVectorLabelParser(Pattern colSep,
String quoteChars,
Pattern comment,
BitSet labelIndices)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Deprecated.
Get the logger for this class.
|
buildMeta, createDBObject, data, getMeta, getTypeInformation, initStream, nextEvent, parseLineInternal
parse
lengthWithoutLinefeed, toString
private static final Logging LOG
public DoubleVectorLabelParser(Pattern colSep, String quoteChars, Pattern comment, BitSet labelIndices)
colSep
- Column separatorquoteChars
- Quotation charactercomment
- Comment patternlabelIndices
- Indices to use as labelspublic DoubleVectorLabelParser()
protected Logging getLogger()
AbstractParser
getLogger
in class NumberVectorLabelParser<DoubleVector>