Class/Object

org.apache.spark.ml.regression

GBMRegressor

Related Docs: object GBMRegressor | package regression

Permalink

class GBMRegressor extends Predictor[Vector, GBMRegressor, GBMRegressionModel] with GBMRegressorParams with MLWritable

Linear Supertypes
MLWritable, GBMRegressorParams, GBMParams, HasSubBag, BoostingParams, HasNumRound, HasTol, HasValidationIndicatorCol, HasBaseLearner, HasSeed, HasWeightCol, HasNumBaseLearners, HasMaxIter, HasLearningRate, Predictor[Vector, GBMRegressor, GBMRegressionModel], PredictorParams, HasPredictionCol, HasFeaturesCol, HasLabelCol, Estimator[GBMRegressionModel], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GBMRegressor
  2. MLWritable
  3. GBMRegressorParams
  4. GBMParams
  5. HasSubBag
  6. BoostingParams
  7. HasNumRound
  8. HasTol
  9. HasValidationIndicatorCol
  10. HasBaseLearner
  11. HasSeed
  12. HasWeightCol
  13. HasNumBaseLearners
  14. HasMaxIter
  15. HasLearningRate
  16. Predictor
  17. PredictorParams
  18. HasPredictionCol
  19. HasFeaturesCol
  20. HasLabelCol
  21. Estimator
  22. PipelineStage
  23. Logging
  24. Params
  25. Serializable
  26. Serializable
  27. Identifiable
  28. AnyRef
  29. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GBMRegressor()

    Permalink
  2. new GBMRegressor(uid: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. val alpha: Param[Double]

    Permalink

    The alpha-quantile of the huber loss function and the quantile loss function.

    The alpha-quantile of the huber loss function and the quantile loss function. Only if loss="huber" or loss="quantile". (default = 0.9)

    Definition Classes
    GBMRegressorParams
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def avgLoss(lossColName: String, boostProbaColName: String)(df: DataFrame): Double

    Permalink
    Definition Classes
    BoostingParams
  8. val baseLearner: Param[EnsemblePredictorType]

    Permalink

    param for the estimator that will be used by the ensemble learner as a base learner

    param for the estimator that will be used by the ensemble learner as a base learner

    Definition Classes
    HasBaseLearner
  9. def beta(avgl: Double, numClasses: Int = 2): Double

    Permalink
    Definition Classes
    BoostingParams
  10. final def clear(param: Param[_]): GBMRegressor.this.type

    Permalink
    Definition Classes
    Params
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copy(extra: ParamMap): GBMRegressor

    Permalink
    Definition Classes
    GBMRegressor → Predictor → Estimator → PipelineStage → Params
  13. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  14. final def defaultCopy[T <: Params](extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def evaluateOnValidation(model: GBMClassificationModel, labelColName: String, loss: (Double, Double) ⇒ Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  18. def evaluateOnValidation(model: GBMRegressionModel, labelColName: String, loss: (Double, Double) ⇒ Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  19. def evaluateOnValidation(numClasses: Int, weights: Array[Double], boosters: Array[EnsemblePredictionModelType], labelColName: String, featuresColName: String, loss: (Double) ⇒ Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    BoostingParams
  20. def evaluateOnValidation(weights: Array[Double], boosters: Array[EnsemblePredictionModelType], labelColName: String, featuresColName: String, loss: (Double) ⇒ Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    BoostingParams
  21. def explainParam(param: Param[_]): String

    Permalink
    Definition Classes
    Params
  22. def explainParams(): String

    Permalink
    Definition Classes
    Params
  23. def extractBoostedBag(poissonProbaColName: String, seed: Long)(df: DataFrame): DataFrame

    Permalink
    Definition Classes
    BoostingParams
  24. def extractLabeledPoints(dataset: Dataset[_]): RDD[LabeledPoint]

    Permalink
    Attributes
    protected
    Definition Classes
    Predictor
  25. final def extractParamMap(): ParamMap

    Permalink
    Definition Classes
    Params
  26. final def extractParamMap(extra: ParamMap): ParamMap

    Permalink
    Definition Classes
    Params
  27. def extractSubBag(bagColName: String, index: Int, featuresColName: String, subspace: SubSpace)(df: DataFrame): DataFrame

    Permalink
    Definition Classes
    HasSubBag
  28. final val featuresCol: Param[String]

    Permalink
    Definition Classes
    HasFeaturesCol
  29. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def findOptimizedConst(labelColName: String, loss: (Double, Double) ⇒ Double, maxIter: Int, tol: Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  31. def findOptimizedConst(labelColName: String, loss: (Double, Double) ⇒ Double, grad: (Double, Double) ⇒ Double, maxIter: Int, tol: Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  32. def findOptimizedWeight(labelColName: String, currentPredictionColName: String, boosterPredictionColName: String, loss: (Double, Double) ⇒ Double, maxIter: Int, tol: Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  33. def findOptimizedWeight(labelColName: String, currentPredictionColName: String, boosterPredictionColName: String, loss: (Double, Double) ⇒ Double, grad: (Double, Double) ⇒ Double, maxIter: Int, tol: Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  34. def fit(dataset: Dataset[_]): GBMRegressionModel

    Permalink
    Definition Classes
    Predictor → Estimator
  35. def fit(dataset: Dataset[_], paramMaps: Array[ParamMap]): Seq[GBMRegressionModel]

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  36. def fit(dataset: Dataset[_], paramMap: ParamMap): GBMRegressionModel

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  37. def fit(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): GBMRegressionModel

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" ) @varargs()
  38. def fitBaseLearner(baseLearner: EnsemblePredictorType, labelColName: String, featuresColName: String, predictionColName: String, weightColName: Option[String])(df: DataFrame): EnsemblePredictionModelType

    Permalink
    Definition Classes
    HasBaseLearner
  39. final def get[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  40. def getAlpha: Double

    Permalink

    Definition Classes
    GBMRegressorParams
  41. def getBaseLearner: EnsemblePredictorType

    Permalink

    Definition Classes
    HasBaseLearner
  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def getDefault[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  44. final def getFeaturesCol: String

    Permalink
    Definition Classes
    HasFeaturesCol
  45. final def getLabelCol: String

    Permalink
    Definition Classes
    HasLabelCol
  46. def getLearningRate: Double

    Permalink

    Definition Classes
    HasLearningRate
  47. def getLoss: String

    Permalink

    Definition Classes
    GBMRegressorParams
  48. final def getMaxIter: Int

    Permalink
    Definition Classes
    HasMaxIter
  49. def getNumBaseLearners: Int

    Permalink

    Definition Classes
    HasNumBaseLearners
  50. def getNumFeatures(dataset: DataFrame, featuresCol: String): Int

    Permalink
    Definition Classes
    HasSubBag
  51. def getNumRound: Int

    Permalink

    Definition Classes
    HasNumRound
  52. def getOptimizedWeights: Boolean

    Permalink

    Definition Classes
    GBMParams
  53. final def getOrDefault[T](param: Param[T]): T

    Permalink
    Definition Classes
    Params
  54. def getParam(paramName: String): Param[Any]

    Permalink
    Definition Classes
    Params
  55. final def getPredictionCol: String

    Permalink
    Definition Classes
    HasPredictionCol
  56. def getReplacement: Boolean

    Permalink

    Definition Classes
    HasSubBag
  57. def getSampleRatio: Double

    Permalink

    Definition Classes
    HasSubBag
  58. final def getSeed: Long

    Permalink
    Definition Classes
    HasSeed
  59. def getSubspaceRatio: Double

    Permalink

    Definition Classes
    HasSubBag
  60. final def getTol: Double

    Permalink
    Definition Classes
    HasTol
  61. final def getValidationIndicatorCol: String

    Permalink
    Definition Classes
    HasValidationIndicatorCol
  62. final def getWeightCol: String

    Permalink
    Definition Classes
    HasWeightCol
  63. final def hasDefault[T](param: Param[T]): Boolean

    Permalink
    Definition Classes
    Params
  64. def hasParam(paramName: String): Boolean

    Permalink
    Definition Classes
    Params
  65. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  66. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  67. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  68. final def isDefined(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  69. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  70. final def isSet(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  71. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  72. final val labelCol: Param[String]

    Permalink
    Definition Classes
    HasLabelCol
  73. val learningRate: Param[Double]

    Permalink

    param for the learning rate of the algorithm

    param for the learning rate of the algorithm

    Definition Classes
    HasLearningRate
  74. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  75. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  76. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  77. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  78. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  79. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  80. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  81. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  82. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  83. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  84. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  85. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  86. val loss: Param[String]

    Permalink

    Loss function which Boosting tries to minimize.

    Loss function which Boosting tries to minimize. (case-insensitive) Supported: "squared", "absolute", "huber", "quantile". (default = ls)

    Definition Classes
    GBMRegressorParams
  87. final val maxIter: IntParam

    Permalink
    Definition Classes
    HasMaxIter
  88. def mkSubspace(sampleRatio: Double, numFeatures: Int, seed: Long): SubSpace

    Permalink
    Definition Classes
    HasSubBag
  89. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  90. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  91. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  92. val numBaseLearners: Param[Int]

    Permalink

    param for the number of base learners of the algorithm

    param for the number of base learners of the algorithm

    Definition Classes
    HasNumBaseLearners
  93. val numRound: Param[Int]

    Permalink

    param for the number of round waiting for next decrease in validation set

    param for the number of round waiting for next decrease in validation set

    Definition Classes
    HasNumRound
  94. val optimizedWeights: Param[Boolean]

    Permalink

    param for using optimized weights in GBM

    param for using optimized weights in GBM

    Definition Classes
    GBMParams
  95. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  96. final val predictionCol: Param[String]

    Permalink
    Definition Classes
    HasPredictionCol
  97. def probabilize(boostWeightColName: String, boostProbaColName: String, poissonProbaColName: String)(df: DataFrame): DataFrame

    Permalink
    Definition Classes
    BoostingParams
  98. val replacement: Param[Boolean]

    Permalink

    param for whether samples are drawn with replacement

    param for whether samples are drawn with replacement

    Definition Classes
    HasSubBag
  99. val sampleRatio: Param[Double]

    Permalink

    param for ratio of rows sampled out of the dataset

    param for ratio of rows sampled out of the dataset

    Definition Classes
    HasSubBag
  100. def save(path: String): Unit

    Permalink
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  101. final val seed: LongParam

    Permalink
    Definition Classes
    HasSeed
  102. final def set(paramPair: ParamPair[_]): GBMRegressor.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  103. final def set(param: String, value: Any): GBMRegressor.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  104. final def set[T](param: Param[T], value: T): GBMRegressor.this.type

    Permalink
    Definition Classes
    Params
  105. def setAlpha(value: Double): GBMRegressor.this.type

    Permalink

  106. def setBaseLearner(value: Predictor[_, _, _]): GBMRegressor.this.type

    Permalink
  107. final def setDefault(paramPairs: ParamPair[_]*): GBMRegressor.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  108. final def setDefault[T](param: Param[T], value: T): GBMRegressor.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  109. def setFeaturesCol(value: String): GBMRegressor

    Permalink
    Definition Classes
    Predictor
  110. def setLabelCol(value: String): GBMRegressor

    Permalink
    Definition Classes
    Predictor
  111. def setLearningRate(value: Double): GBMRegressor.this.type

    Permalink

  112. def setLoss(value: String): GBMRegressor.this.type

    Permalink

  113. def setMaxIter(value: Int): GBMRegressor.this.type

    Permalink

  114. def setNumBaseLearners(value: Int): GBMRegressor.this.type

    Permalink

  115. def setOptimizedWeights(value: Boolean): GBMRegressor.this.type

    Permalink

  116. def setPredictionCol(value: String): GBMRegressor

    Permalink
    Definition Classes
    Predictor
  117. def setSeed(value: Long): GBMRegressor.this.type

    Permalink

  118. def setTol(value: Double): GBMRegressor.this.type

    Permalink

  119. def setValidationIndicatorCol(value: String): GBMRegressor.this.type

    Permalink

  120. def setWeightCol(value: String): GBMRegressor.this.type

    Permalink

  121. def slicer(subspace: SubSpace): (Vector) ⇒ Vector

    Permalink
    Definition Classes
    HasSubBag
  122. val subspaceRatio: Param[Double]

    Permalink

    param for ratio of rows sampled out of the dataset

    param for ratio of rows sampled out of the dataset

    Definition Classes
    HasSubBag
  123. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  124. def terminate(weight: Double, learningRate: Double, withValidation: Boolean, error: Double, verror: Double, tol: Double, numRound: Int, numTry: Int, iter: Int, instrumentation: Instrumentation): (Int, Double, Int)

    Permalink
    Definition Classes
    GBMParams
  125. def terminate(weights: Array[Double], learningRate: Double, withValidation: Boolean, error: Double, verror: Double, tol: Double, numRound: Int, numTry: Int, iter: Int, instrumentation: Instrumentation): (Int, Double, Int)

    Permalink
    Definition Classes
    GBMParams
  126. def terminate(avgl: Double, withValidation: Boolean, error: Double, verror: Double, tol: Double, numRound: Int, numTry: Int, iter: Int, instrumentation: Instrumentation, numClasses: Double = 2.0): (Int, Double, Int)

    Permalink
    Definition Classes
    BoostingParams
  127. def terminateVal(withValidation: Boolean, error: Double, verror: Double, tol: Double, numRound: Int, numTry: Int, iter: Int, instrumentation: Instrumentation): (Int, Double, Int)

    Permalink
    Definition Classes
    BoostingParams
  128. def toString(): String

    Permalink
    Definition Classes
    Identifiable → AnyRef → Any
  129. final val tol: DoubleParam

    Permalink
    Definition Classes
    HasTol
  130. def train(dataset: Dataset[_]): GBMRegressionModel

    Permalink
    Attributes
    protected
    Definition Classes
    GBMRegressor → Predictor
  131. def transformSchema(schema: StructType): StructType

    Permalink
    Definition Classes
    Predictor → PipelineStage
  132. def transformSchema(schema: StructType, logging: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  133. val uid: String

    Permalink
    Definition Classes
    GBMRegressor → Identifiable
  134. def updateWeights(boostWeightColName: String, lossColName: String, beta: Double, updatedBoostWeightColName: String)(df: DataFrame): DataFrame

    Permalink
    Definition Classes
    BoostingParams
  135. def validateAndTransformSchema(schema: StructType, fitting: Boolean, featuresDataType: DataType): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PredictorParams
  136. final val validationIndicatorCol: Param[String]

    Permalink
    Definition Classes
    HasValidationIndicatorCol
  137. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  138. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  139. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  140. def weight(beta: Double): Double

    Permalink
    Definition Classes
    BoostingParams
  141. final val weightCol: Param[String]

    Permalink
    Definition Classes
    HasWeightCol
  142. def withBag(withReplacement: Boolean, sampleRatio: Double, numberSamples: Int, seed: Long, bagColName: String)(df: DataFrame): DataFrame

    Permalink
    Definition Classes
    HasSubBag
  143. def write: MLWriter

    Permalink
    Definition Classes
    GBMRegressor → MLWritable

Inherited from MLWritable

Inherited from GBMRegressorParams

Inherited from GBMParams

Inherited from HasSubBag

Inherited from BoostingParams

Inherited from HasNumRound

Inherited from HasTol

Inherited from HasValidationIndicatorCol

Inherited from HasBaseLearner

Inherited from HasSeed

Inherited from HasWeightCol

Inherited from HasNumBaseLearners

Inherited from HasMaxIter

Inherited from HasLearningRate

Inherited from Predictor[Vector, GBMRegressor, GBMRegressionModel]

Inherited from PredictorParams

Inherited from HasPredictionCol

Inherited from HasFeaturesCol

Inherited from HasLabelCol

Inherited from Estimator[GBMRegressionModel]

Inherited from PipelineStage

Inherited from Logging

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped