Packages

object XGBoost

XGBoost Scala Training function.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XGBoost
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def crossValidation(data: DMatrix, params: Map[String, Any], round: Int, nfold: Int = 5, metrics: Array[String] = null, obj: ObjectiveTrait = null, eval: EvalTrait = null): Array[String]

    Cross-validation with given parameters.

    Cross-validation with given parameters.

    data

    Data to be trained.

    params

    Booster params.

    round

    Number of boosting iterations.

    nfold

    Number of folds in CV.

    metrics

    Evaluation metrics to be watched in CV.

    obj

    customized objective

    eval

    customized evaluation

    returns

    evaluation history

    Annotations
    @throws(classOf[XGBoostError])
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def loadModel(in: InputStream): Booster

    Load a new Booster model from a file opened as input stream.

    Load a new Booster model from a file opened as input stream. The assumption is the input stream only contains one XGBoost Model. This can be used to load existing booster models saved by other XGBoost bindings.

    in

    The input stream of the file.

    returns

    The create booster

    Annotations
    @throws(classOf[XGBoostError])
  13. def loadModel(modelPath: String): Booster

    load model from modelPath

    load model from modelPath

    modelPath

    booster modelPath

    Annotations
    @throws(classOf[XGBoostError])
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. def train(dtrain: DMatrix, params: Map[String, Any], round: Int, watches: Map[String, DMatrix] = Map(), metrics: Array[Array[Float]] = null, obj: ObjectiveTrait = null, eval: EvalTrait = null, earlyStoppingRound: Int = 0, booster: Booster = null): Booster

    Train a booster given parameters.

    Train a booster given parameters.

    dtrain

    Data to be trained.

    params

    Parameters.

    round

    Number of boosting iterations.

    watches

    a group of items to be evaluated during training, this allows user to watch performance on the validation set.

    metrics

    array containing the evaluation metrics for each matrix in watches for each iteration

    obj

    customized objective

    eval

    customized evaluation

    earlyStoppingRound

    if non-zero, training would be stopped after a specified number of consecutive increases in any evaluation metric.

    booster

    train from scratch if set to null; train from an existing booster if not null.

    returns

    The trained booster.

    Annotations
    @throws(classOf[XGBoostError])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped