public class ValidationRunner extends Object
Modifier and Type | Method and Description |
---|---|
static <DATASET extends Dataset<?>,ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT extends AnalysisResult> |
run(ResultAggregator<ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT> aggregator,
DATASET dataset,
CrossValidator<DATASET> cv,
ValidationOperation<DATASET,ANALYSIS_RESULT> round)
Perform cross validation using the given cross validation scheme
on the given data.
|
static <DATASET extends Dataset<?>,ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT extends AnalysisResult> |
run(ResultAggregator<ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT> aggregator,
DATASET dataset,
CrossValidator<DATASET> cv,
ValidationOperation<DATASET,ANALYSIS_RESULT> round,
ThreadPoolExecutor pool)
Perform cross validation using the given cross validation scheme
on the given data.
|
public static <DATASET extends Dataset<?>,ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT extends AnalysisResult> AGGREGATE_ANALYSIS_RESULT run(ResultAggregator<ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT> aggregator, DATASET dataset, CrossValidator<DATASET> cv, ValidationOperation<DATASET,ANALYSIS_RESULT> round)
Rounds of the validation are performed in parallel using
threads from the GlobalExecutorPool
.
DATASET
- The type of the datasetANALYSIS_RESULT
- The type of the analysis result from each roundAGGREGATE_ANALYSIS_RESULT
- The type of the aggregated analysis resultaggregator
- the results aggregatordataset
- the datasetcv
- the cross-validation schemeround
- the operation to perform in each roundpublic static <DATASET extends Dataset<?>,ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT extends AnalysisResult> AGGREGATE_ANALYSIS_RESULT run(ResultAggregator<ANALYSIS_RESULT,AGGREGATE_ANALYSIS_RESULT> aggregator, DATASET dataset, CrossValidator<DATASET> cv, ValidationOperation<DATASET,ANALYSIS_RESULT> round, ThreadPoolExecutor pool)
Rounds of the validation can be performed in parallel, using the available threads in the given pool.
DATASET
- The type of the datasetANALYSIS_RESULT
- The type of the analysis result from each roundAGGREGATE_ANALYSIS_RESULT
- The type of the aggregated analysis resultaggregator
- the results aggregatordataset
- the datasetcv
- the cross-validation schemeround
- the operation to perform in each roundpool
- a thread-pool for parallel processing