public class MarsyasARFFInputData extends ARFFFormatInputData
ATTRIBUTE, DATA, INTEGER_TYPE, NUMERIC_TYPE, REAL_TYPE, RELATION, STRING_TYPE
data, DEFAULT_NORMALISED, DEFAULT_NUM_CACHE_BLOCKS, DEFAULT_RANDOM_SEED, DEFAULT_SPARSE, INPUT_VECTOR_FILE_FORMAT_CORRUPT_MESSAGE, nonZeros, sparse
classInfo, contentType, dataNames, dim, ERROR_MESSAGE_FILE_FORMAT_CORRUPT, featureMatrixCols, featureMatrixRows, isNormalized, meanVector, mqe0, nameCache, numVectors, rand, source, templateVector
inputFileNameSuffix, MISSING_VALUE
Constructor and Description |
---|
MarsyasARFFInputData(java.lang.String arffFileName) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getClassAttributeName() |
static java.lang.String |
getFormatName() |
protected java.lang.String |
getInstanceName(java.lang.String line,
java.io.BufferedReader reader) |
static void |
main(java.lang.String[] args) |
protected void |
readVectorFile(java.lang.String arffFileName,
boolean sparse)
Reads the input data from the given file, which has to follow the Input Vector File
specification.
|
getFileNameSuffix
addInstance, getDataAsMatrix, getDimensionality, getInputDatum, getInputVector, getValue, init, initDataStructures, initMatrix, mqe0, openFile, parse, parseDouble, processLine, setLabel, setMatrixValue, setValue, subset
classInformation, create, dim, equals, getByNameDistanceSorted, getContentType, getData, getData, getDataIntervals, getDataSource, getDistanceMatrix, getDistances, getFeatureDensities, getFeatureMatrixColumns, getFeatureMatrixRows, getInputDatum, getInputDatum, getInputDatumIndex, getLabel, getLabels, getMaxValue, getMeanVector, getMeanVector, getMinValue, getNearestDistances, getNearestN, getNearestN, getNearestNUnsorted, getRandomInputDatum, initDistanceMatrix, isNormalizedToUnitLength, numVectors, setClassInfo, setTemplateVector, templateVector, transformValues
protected void readVectorFile(java.lang.String arffFileName, boolean sparse)
SOMLibSparseInputData
AbstractSOMLibSparseInputData.meanVector
and creates the
AbstractSOMLibSparseInputData.nameCache
for faster index search.readVectorFile
in class ARFFFormatInputData
arffFileName
- the name of the input vector file.protected java.lang.String getInstanceName(java.lang.String line, java.io.BufferedReader reader) throws java.io.IOException
java.io.IOException
public static java.lang.String getFormatName()
public static void main(java.lang.String[] args)
protected java.lang.String getClassAttributeName()
getClassAttributeName
in class ARFFFormatInputData