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

hex.genmodel.algos.tree.ConvertTreeOptions Maven / Gradle / Ivy

There is a newer version: 3.46.0.5
Show newest version
package hex.genmodel.algos.tree;

public class ConvertTreeOptions {
  static final ConvertTreeOptions DEFAULT = new ConvertTreeOptions();

  final boolean _checkTreeConsistency;

  public ConvertTreeOptions() {
    this(false);
  }
  
  private ConvertTreeOptions(boolean checkTreeConsistency) {
    _checkTreeConsistency = checkTreeConsistency;
  }

  /**
   * Performs a self-check on each converted tree. Inconsistencies are reported in the log.
   * @return a new instance of the options object with consistency-check flag enabled 
   */
  public ConvertTreeOptions withTreeConsistencyCheckEnabled() {
    return new ConvertTreeOptions(true);
  }

  @Override
  public String toString() {
    return "ConvertTreeOptions{" +
            "_checkTreeConsistency=" + _checkTreeConsistency +
            '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy