public interface SparseDataFormatter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_INSTANCE_ID
value instance_id.
|
static java.lang.String |
SCOPE
scope property key
|
static java.lang.String |
SCOPE_FOLD
fold value for scope
|
static java.lang.String |
SCOPE_LABEL
label value for scope
|
Modifier and Type | Method and Description |
---|---|
void |
clearFold()
clear all data structures set up during initializeFold
|
void |
clearLabel() |
void |
exportFold(SparseData sparseData,
java.util.SortedMap<java.lang.Long,java.lang.String> sortedMap,
boolean train,
java.lang.String label,
java.lang.Integer run,
java.lang.Integer fold)
export the fold train/test set.
|
void |
initializeExport(InstanceData instanceLabel,
java.util.Properties properties,
SparseData sparseData)
initialize export - called once
|
void |
initializeFold(SparseData sparseData,
java.lang.String label,
java.lang.Integer run,
java.lang.Integer fold,
java.util.SortedMap<java.lang.Boolean,java.util.SortedMap<java.lang.Long,java.lang.String>> foldInstanceLabelMap)
initialize data structures for the fold that will be exported.
|
void |
initializeLabel(java.lang.String label,
java.util.SortedMap<java.lang.Integer,java.util.SortedMap<java.lang.Integer,java.util.SortedMap<java.lang.Boolean,java.util.SortedMap<java.lang.Long,java.lang.String>>>> labelInstances,
java.util.Properties properties,
SparseData sparseData) |
static final java.lang.String SCOPE
static final java.lang.String SCOPE_FOLD
static final java.lang.String SCOPE_LABEL
static final java.lang.String ATTR_INSTANCE_ID
void initializeFold(SparseData sparseData, java.lang.String label, java.lang.Integer run, java.lang.Integer fold, java.util.SortedMap<java.lang.Boolean,java.util.SortedMap<java.lang.Long,java.lang.String>> foldInstanceLabelMap) throws java.io.IOException
sparseData
- label
- run
- fold
- foldInstanceLabelMap
- java.io.IOException
void exportFold(SparseData sparseData, java.util.SortedMap<java.lang.Long,java.lang.String> sortedMap, boolean train, java.lang.String label, java.lang.Integer run, java.lang.Integer fold) throws java.io.IOException
sparseData
- sortedMap
- train
- label
- run
- fold
- java.io.IOException
void initializeExport(InstanceData instanceLabel, java.util.Properties properties, SparseData sparseData) throws java.io.IOException
instanceLabel
- properties
- java.io.IOException
void clearFold()
void initializeLabel(java.lang.String label, java.util.SortedMap<java.lang.Integer,java.util.SortedMap<java.lang.Integer,java.util.SortedMap<java.lang.Boolean,java.util.SortedMap<java.lang.Long,java.lang.String>>>> labelInstances, java.util.Properties properties, SparseData sparseData) throws java.io.IOException
java.io.IOException
void clearLabel()