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

com.expleague.ml.cli.builders.methods.impl.RegGreedyObliviousTreeBuilder 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.ml.BFGrid;
import com.expleague.ml.methods.VecOptimization;
import com.expleague.commons.func.Factory;
import com.expleague.ml.methods.trees.RegGreedyObliviousTree;

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

  private Factory gridBuilder = defaultGridBuilder;
  private int depth = 6;
  private double lambda = 0.02;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy