public static class NumberVectorLabelParser.Parameterizer<V extends NumberVector<?>> extends AbstractParser.Parameterizer
Modifier and Type | Field and Description |
---|---|
protected NumberVector.Factory<V,?> |
factory
Factory object.
|
static OptionID |
LABEL_INDICES_ID
A comma separated list of the indices of labels (may be numeric),
counting whitespace separated entries in a line starting with 0.
|
protected BitSet |
labelIndices
Keeps the indices of the attributes to be treated as a string label.
|
static OptionID |
VECTOR_TYPE_ID
Parameter to specify the type of vectors to produce.
|
colSep, COLUMN_SEPARATOR_ID, comment, COMMENT_ID, QUOTE_ID, quoteChars
Constructor and Description |
---|
NumberVectorLabelParser.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
getFactory(Parameterization config)
Get the object factory.
|
protected void |
getLabelIndices(Parameterization config)
Get the label indices.
|
protected NumberVectorLabelParser<V> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
public static final OptionID LABEL_INDICES_ID
Key: -parser.labelIndices
public static final OptionID VECTOR_TYPE_ID
Key: -parser.vector-type
Default: DoubleVector
protected BitSet labelIndices
protected NumberVector.Factory<V extends NumberVector<?>,?> factory
public NumberVectorLabelParser.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractParser.Parameterizer
config
- Parameterization to add options to.protected void getFactory(Parameterization config)
config
- Parameterizationprotected void getLabelIndices(Parameterization config)
config
- Parameterizationprotected NumberVectorLabelParser<V> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParser.Parameterizer