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(String arffFileName) |
Modifier and Type | Method and Description |
---|---|
protected String |
getClassAttributeName() |
static String |
getFormatName() |
protected String |
getInstanceName(String line,
BufferedReader reader) |
static void |
main(String[] args) |
protected void |
readVectorFile(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
public MarsyasARFFInputData(String arffFileName)
protected void readVectorFile(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 String getInstanceName(String line, BufferedReader reader) throws IOException
IOException
public static String getFormatName()
public static void main(String[] args)
protected String getClassAttributeName()
getClassAttributeName
in class ARFFFormatInputData