public class ParameterTuningHelper<T> extends Object
Sep 2, 2010
Constructor and Description |
---|
ParameterTuningHelper(IExperimentFactory<T> experimentFactory,
int numFolds,
List<List<Double>> parameters,
int timeoutSeconds,
int numThreads) |
public ParameterTuningHelper(IExperimentFactory<T> experimentFactory, int numFolds, List<List<Double>> parameters, int timeoutSeconds, int numThreads)
protected List<List<T>> splitData(Iterable<T> data, int dataSize)
Note: This splits the data into K folds uniformly. If the classes are not equally distributed, then this is wrong. Instead, override this to do a stratified split, so that the split proportions are maintained.
public List<Double> tune(Iterable<T> data, int dataSize) throws InterruptedException, ExecutionException
Copyright © 2017. All rights reserved.