public interface FoldGenerator
Modifier and Type | Method and Description |
---|---|
SortedMap<String,SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>>> |
generateRuns(SortedMap<String,SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>>> labelToInstanceMap,
int nFolds,
int nMinPerClass,
Integer nSeed,
int nRuns)
Generate cross validation folds, don't store in database.
|
void |
generateRuns(String corpusName,
String splitName,
String query,
int nFolds,
int nMinPerClass,
Integer nSeed,
int nRuns)
Generate cross validation folds, store in database.
|
void generateRuns(String corpusName, String splitName, String query, int nFolds, int nMinPerClass, Integer nSeed, int nRuns)
corpusName
- class labelquery
- query to get instance id - label - class triplesnFolds
- number of folds to generatenMinPerClass
- minimum number of instances of each class per foldnSeed
- random number seed; if null will be set currentTime in millisnRuns
- number of runsSortedMap<String,SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>>> generateRuns(SortedMap<String,SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>>> labelToInstanceMap, int nFolds, int nMinPerClass, Integer nSeed, int nRuns)
labelToInstanceMap
- an instance class map without folds @see
InstanceData.labelToInstanceMap
nFolds
- number of foldsnMinPerClass
- minimum instance per classnSeed
- random seed default to System.currentTimeMillis()nRuns
- number of runsfoldMap
- same structure as labelToInstanceMap, but with foldsCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.