Class TrainTest.XGBoostOptions

java.lang.Object
org.tribuo.regression.xgboost.TrainTest.XGBoostOptions
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
Enclosing class:
TrainTest

public static class TrainTest.XGBoostOptions extends Object implements com.oracle.labs.mlrg.olcut.config.Options
Command line options.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    L1 regularization term for weights (default 0).
    int
    Max tree depth (default 6, range (0,inf]).
    int
    Number of trees in the ensemble.
    float
    Step size shrinkage parameter (default 0.3, range [0,1]).
    float
    Minimum loss reduction to make a split (default 0, range [0,inf]).
    The data loading options.
    float
    L2 regularization term for weights (default 1).
    float
    Minimum sum of instance weights needed in a leaf (default 1, range [0,inf]).
    int
    Number of threads to use (default 4, range (1, num hw threads)).
    boolean
    Make the XGBoost training procedure quiet.
    Regression type to use.
    float
    Subsample size for each tree (default 1, range (0,1]).
    float
    Subsample features for each tree (default 1, range (0,1]).

    Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options

    header
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • general

      public DataOptions general
      The data loading options.
    • rType

      @Option(longName="regression-metric", usage="Regression type to use. Defaults to LINEAR.") public XGBoostRegressionTrainer.RegressionType rType
      Regression type to use. Defaults to LINEAR.
    • ensembleSize

      @Option(charName='m', longName="ensemble-size", usage="Number of trees in the ensemble.") public int ensembleSize
      Number of trees in the ensemble.
    • alpha

      @Option(charName='a', longName="alpha", usage="L1 regularization term for weights (default 0).") public float alpha
      L1 regularization term for weights (default 0).
    • minWeight

      @Option(longName="min-weight", usage="Minimum sum of instance weights needed in a leaf (default 1, range [0,inf]).") public float minWeight
      Minimum sum of instance weights needed in a leaf (default 1, range [0,inf]).
    • depth

      @Option(charName='d', longName="max-depth", usage="Max tree depth (default 6, range (0,inf]).") public int depth
      Max tree depth (default 6, range (0,inf]).
    • eta

      @Option(charName='e', longName="eta", usage="Step size shrinkage parameter (default 0.3, range [0,1]).") public float eta
      Step size shrinkage parameter (default 0.3, range [0,1]).
    • subsampleFeatures

      @Option(longName="subsample-features", usage="Subsample features for each tree (default 1, range (0,1]).") public float subsampleFeatures
      Subsample features for each tree (default 1, range (0,1]).
    • gamma

      @Option(charName='g', longName="gamma", usage="Minimum loss reduction to make a split (default 0, range [0,inf]).") public float gamma
      Minimum loss reduction to make a split (default 0, range [0,inf]).
    • lambda

      @Option(charName='l', longName="lambda", usage="L2 regularization term for weights (default 1).") public float lambda
      L2 regularization term for weights (default 1).
    • quiet

      @Option(charName='q', longName="quiet", usage="Make the XGBoost training procedure quiet.") public boolean quiet
      Make the XGBoost training procedure quiet.
    • subsample

      @Option(longName="subsample", usage="Subsample size for each tree (default 1, range (0,1]).") public float subsample
      Subsample size for each tree (default 1, range (0,1]).
    • numThreads

      @Option(charName='t', longName="num-threads", usage="Number of threads to use (default 4, range (1, num hw threads)).") public int numThreads
      Number of threads to use (default 4, range (1, num hw threads)).
  • Constructor Details

    • XGBoostOptions

      public XGBoostOptions()
  • Method Details

    • getOptionsDescription

      public String getOptionsDescription()
      Specified by:
      getOptionsDescription in interface com.oracle.labs.mlrg.olcut.config.Options