public class ARFFFormatInputData extends SOMLibSparseInputData
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE |
static String |
DATA |
static String |
INTEGER_TYPE |
private static char |
NULLCHAR |
static String |
NUMERIC_TYPE |
static String |
REAL_TYPE |
static String |
RELATION |
static String |
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 |
---|
ARFFFormatInputData(String arffFileName) |
ARFFFormatInputData(String arffFileName,
boolean sparse,
boolean norm,
int numCacheBlocks,
long seed) |
Modifier and Type | Method and Description |
---|---|
protected String |
getClassAttributeName() |
static String |
getFileNameSuffix() |
static String |
getFormatName() |
protected void |
readVectorFile(String arffFileName,
boolean sparse)
Reads the input data from the given file, which has to follow the Input Vector File
specification.
|
addInstance, getDataAsMatrix, getDimensionality, getInputDatum, getInputVector, getValue, init, initDataStructures, initMatrix, main, 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 static final String RELATION
public static final String ATTRIBUTE
public static final String DATA
public static final String INTEGER_TYPE
public static final String NUMERIC_TYPE
public static final String REAL_TYPE
public static final String STRING_TYPE
private static final char NULLCHAR
public ARFFFormatInputData(String arffFileName)
public ARFFFormatInputData(String arffFileName, boolean sparse, boolean norm, int numCacheBlocks, long seed)
protected void readVectorFile(String arffFileName, boolean sparse)
SOMLibSparseInputData
AbstractSOMLibSparseInputData.meanVector
and creates the
AbstractSOMLibSparseInputData.nameCache
for faster index search.readVectorFile
in class SOMLibSparseInputData
arffFileName
- the name of the input vector file.protected String getClassAttributeName()
public static String getFormatName()
public static String getFileNameSuffix()