All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.ml.cli.builders.methods.impl.GreedyObliviousTreeBuilder Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
package com.expleague.ml.cli.builders.methods.impl;

import com.expleague.commons.func.Factory;
import com.expleague.ml.BFGrid;
import com.expleague.ml.methods.VecOptimization;
import com.expleague.ml.methods.trees.GreedyObliviousTree;

/**
 * User: qdeee
 * Date: 03.09.14
 */
public class GreedyObliviousTreeBuilder implements Factory {
  public static Factory defaultGridBuilder;

  private Factory gridBuilder = defaultGridBuilder;
  private int depth = 6;

  public void setDepth(final int d) {
    this.depth = d;
  }

  public void setGridBuilder(final Factory gridBuilder) {
    this.gridBuilder = gridBuilder;
  }

  @Override
  public VecOptimization create() {
    return new GreedyObliviousTree(gridBuilder.create(), depth);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy