de.lmu.ifi.dbs.elki.parser.meta
Class SparseFloatVectorRandomProjectionParser
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.parser.meta.MetaParser<V>
de.lmu.ifi.dbs.elki.parser.meta.RandomProjectionParser<SparseFloatVector>
de.lmu.ifi.dbs.elki.parser.meta.SparseFloatVectorRandomProjectionParser
- All Implemented Interfaces:
- Parser<SparseFloatVector>, Parameterizable
public class SparseFloatVectorRandomProjectionParser
- extends RandomProjectionParser<SparseFloatVector>
Parser to project the ParsingResult obtained by a suitable base parser
onto a randomly selected subset of attributes.
- Author:
- Arthur Zimek
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
SparseFloatVectorRandomProjectionParser
public SparseFloatVectorRandomProjectionParser()
parse
public ParsingResult<SparseFloatVector> parse(InputStream in)
Returns as ParsingResult a projection on a randomly selected subset of attributes.
The specified InputStream is parsed by a base parser, the resulting ParsingResult is projected
on a randomly selected subset of attributes.
- Parameters:
in
- the stream to parse objects from
- Returns:
- a list containing those objects parsed
from the input stream and their associated labels.
- See Also:
Parser.parse(java.io.InputStream)