public class ARFFFormatInputData extends SOMLibSparseInputData
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE |
static java.lang.String |
DATA |
static java.lang.String |
INTEGER_TYPE |
private static char |
NULLCHAR |
static java.lang.String |
NUMERIC_TYPE |
static java.lang.String |
REAL_TYPE |
static java.lang.String |
RELATION |
static java.lang.String |
STRING_TYPE |
data, DEFAULT_NORMALISED, DEFAULT_NUM_CACHE_BLOCKS, DEFAULT_RANDOM_SEED, DEFAULT_SPARSE, INPUT_VECTOR_FILE_FORMAT_CORRUPT_MESSAGE, nonZeros, sparseclassInfo, contentType, dataNames, dim, ERROR_MESSAGE_FILE_FORMAT_CORRUPT, featureMatrixCols, featureMatrixRows, isNormalized, meanVector, mqe0, nameCache, numVectors, rand, source, templateVectorinputFileNameSuffix, MISSING_VALUE| Constructor and Description |
|---|
ARFFFormatInputData(java.lang.String arffFileName) |
ARFFFormatInputData(java.lang.String arffFileName,
boolean sparse,
boolean norm,
int numCacheBlocks,
long seed) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getClassAttributeName() |
static java.lang.String |
getFileNameSuffix() |
static java.lang.String |
getFormatName() |
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.
|
addInstance, getDataAsMatrix, getDimensionality, getInputDatum, getInputVector, getValue, init, initDataStructures, initMatrix, main, mqe0, openFile, parse, parseDouble, processLine, setLabel, setMatrixValue, setValue, subsetclassInformation, 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, transformValuespublic static final java.lang.String RELATION
public static final java.lang.String ATTRIBUTE
public static final java.lang.String DATA
public static final java.lang.String INTEGER_TYPE
public static final java.lang.String NUMERIC_TYPE
public static final java.lang.String REAL_TYPE
public static final java.lang.String STRING_TYPE
private static final char NULLCHAR
public ARFFFormatInputData(java.lang.String arffFileName)
public ARFFFormatInputData(java.lang.String arffFileName,
boolean sparse,
boolean norm,
int numCacheBlocks,
long seed)
protected void readVectorFile(java.lang.String arffFileName,
boolean sparse)
SOMLibSparseInputDataAbstractSOMLibSparseInputData.meanVector and creates the
AbstractSOMLibSparseInputData.nameCache for faster index search.readVectorFile in class SOMLibSparseInputDataarffFileName - the name of the input vector file.protected java.lang.String getClassAttributeName()
public static java.lang.String getFormatName()
public static java.lang.String getFileNameSuffix()