org.apache.spark.mllib.tree.model
GradientBoostedTreesModel
Companion class GradientBoostedTreesModel
object GradientBoostedTreesModel extends Loader[GradientBoostedTreesModel] with Serializable
- Annotations
- @Since("1.3.0")
- Source
- treeEnsembleModels.scala
- Alphabetic
- By Inheritance
- GradientBoostedTreesModel
- Serializable
- Loader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def computeInitialPredictionAndError(data: RDD[LabeledPoint], initTreeWeight: Double, initTree: DecisionTreeModel, loss: Loss): RDD[(Double, Double)]
Compute the initial predictions and errors for a dataset for the first iteration of gradient boosting.
Compute the initial predictions and errors for a dataset for the first iteration of gradient boosting.
- returns
an RDD with each element being a zip of the prediction and error corresponding to every sample.
- Annotations
- @Since("1.4.0")
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def load(sc: SparkContext, path: String): GradientBoostedTreesModel
- sc
Spark context used for loading model files.
- path
Path specifying the directory to which the model was saved.
- returns
Model instance
- Definition Classes
- GradientBoostedTreesModel → Loader
- Annotations
- @Since("1.3.0")
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updatePredictionError(data: RDD[LabeledPoint], predictionAndError: RDD[(Double, Double)], treeWeight: Double, tree: DecisionTreeModel, loss: Loss): RDD[(Double, Double)]
Update a zipped predictionError RDD (as obtained with computeInitialPredictionAndError)
Update a zipped predictionError RDD (as obtained with computeInitialPredictionAndError)
- returns
an RDD with each element being a zip of the prediction and error corresponding to each sample.
- Annotations
- @Since("1.4.0")
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)