public interface SparseDataFormatter
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_INSTANCE_ID
value instance_id.
|
static String |
SCOPE
scope property key
|
static String |
SCOPE_FOLD
fold value for scope
|
static 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,
SortedMap<Long,String> sortedMap,
boolean train,
String label,
Integer run,
Integer fold)
export the fold train/test set.
|
void |
initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData)
initialize export - called once
|
void |
initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap)
initialize data structures for the fold that will be exported.
|
void |
initializeLabel(String label,
SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances,
Properties properties,
SparseData sparseData) |
static final String SCOPE
static final String SCOPE_FOLD
static final String SCOPE_LABEL
static final String ATTR_INSTANCE_ID
void initializeFold(SparseData sparseData, String label, Integer run, Integer fold, SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) throws IOException
sparseData
- label
- run
- fold
- foldInstanceLabelMap
- IOException
void exportFold(SparseData sparseData, SortedMap<Long,String> sortedMap, boolean train, String label, Integer run, Integer fold) throws IOException
sparseData
- sortedMap
- train
- label
- run
- fold
- IOException
void initializeExport(InstanceData instanceLabel, Properties properties, SparseData sparseData) throws IOException
instanceLabel
- properties
- IOException
void clearFold()
void initializeLabel(String label, SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances, Properties properties, SparseData sparseData) throws IOException
IOException
void clearLabel()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.