com.expleague.ml.cli.builders.methods.impl.GreedyTDCherryRegionBuilder Maven / Gradle / Ivy
package com.expleague.ml.cli.builders.methods.impl;
import com.expleague.commons.func.Factory;
import com.expleague.commons.random.FastRandom;
import com.expleague.ml.BFGrid;
import com.expleague.ml.methods.BootstrapOptimization;
import com.expleague.ml.methods.VecOptimization;
import com.expleague.ml.methods.greedyRegion.cherry.GreedyTDCherryRegion;
/**
* User: qdeee
* Date: 03.09.14
*/
public class GreedyTDCherryRegionBuilder implements Factory {
public static Factory defaultGridBuilder;
private Factory gridBuilder = defaultGridBuilder;
public void setGridBuilder(final Factory gridBuilder) {
this.gridBuilder = gridBuilder;
}
@Override
public VecOptimization create() {
return new BootstrapOptimization( new GreedyTDCherryRegion(gridBuilder.create()), new FastRandom());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy