public interface ARFFModel
Modifier and Type | Field and Description |
---|---|
static String |
ARFF_COMMENT |
static String |
ARFF_SPARSE |
static String |
ARFF_SPARSE_END |
static String |
ATTRIBUTE |
static String |
DATA |
static String |
RELATION |
Modifier and Type | Method and Description |
---|---|
void |
addDateFormat(Integer idx,
DateFormat format) |
void |
addLabel(String label,
Integer idx) |
void |
addNominal(String label,
String nominal,
int idx) |
void |
addType(Integer idx,
ARFFType type) |
ARFFType |
getARFFType(Integer idx) |
DateFormat |
getDateFormat(Integer idx) |
Map<String,Integer> |
getLabelBindings()
The vector attributes (labels in Mahout speak)
|
Integer |
getLabelIndex(String label) |
int |
getLabelSize() |
Map<String,Map<String,Integer>> |
getNominalMap() |
Integer |
getNominalValue(String label,
String nominal) |
String |
getRelation() |
double |
getValue(String data,
int idx) |
long |
getWordCount()
The count of the number of words seen
|
Map<String,Long> |
getWords() |
void |
setRelation(String relation) |
static final String ARFF_SPARSE
static final String ARFF_SPARSE_END
static final String ARFF_COMMENT
static final String ATTRIBUTE
static final String DATA
static final String RELATION
String getRelation()
void setRelation(String relation)
Map<String,Integer> getLabelBindings()
DateFormat getDateFormat(Integer idx)
void addDateFormat(Integer idx, DateFormat format)
long getWordCount()
double getValue(String data, int idx)
int getLabelSize()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.