Class/Object

org.apache.spark.ml.regression

GBMRegressionModel

Related Docs: object GBMRegressionModel | package regression

Permalink

class GBMRegressionModel extends PredictionModel[Vector, GBMRegressionModel] with GBMRegressorParams with MLWritable

Linear Supertypes
MLWritable, GBMRegressorParams, GBMParams, HasSubBag, BoostingParams, HasNumRound, HasTol, HasValidationIndicatorCol, HasBaseLearner, HasSeed, HasWeightCol, HasNumBaseLearners, HasMaxIter, HasLearningRate, PredictionModel[Vector, GBMRegressionModel], PredictorParams, HasPredictionCol, HasFeaturesCol, HasLabelCol, Model[GBMRegressionModel], Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GBMRegressionModel
  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. PredictionModel
  17. PredictorParams
  18. HasPredictionCol
  19. HasFeaturesCol
  20. HasLabelCol
  21. Model
  22. Transformer
  23. PipelineStage
  24. Logging
  25. Params
  26. Serializable
  27. Serializable
  28. Identifiable
  29. AnyRef
  30. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GBMRegressionModel(weights: Array[Double], subspaces: Array[SubSpace], models: Array[EnsemblePredictionModelType], const: Double)

    Permalink
  2. new GBMRegressionModel(uid: String, weights: Array[Double], subspaces: Array[SubSpace], models: Array[EnsemblePredictionModelType], const: Double)

    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[_]): GBMRegressionModel.this.type

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val const: Double

    Permalink
  13. def copy(extra: ParamMap): GBMRegressionModel

    Permalink
    Definition Classes
    GBMRegressionModel → Model → Transformer → PipelineStage → Params
  14. def copyValues[T <: Params](to: T, extra: ParamMap): T

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    BoostingParams
  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 featuresDataType: DataType

    Permalink
    Attributes
    protected
    Definition Classes
    PredictionModel
  30. def finalize(): Unit

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

    Permalink
    Definition Classes
    GBMParams
  32. def findOptimizedConst(labelColName: String, loss: (Double, Double) ⇒ Double, grad: (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, maxIter: Int, tol: Double)(df: DataFrame): Double

    Permalink
    Definition Classes
    GBMParams
  34. 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
  35. def fitBaseLearner(baseLearner: EnsemblePredictorType, labelColName: String, featuresColName: String, predictionColName: String, weightColName: Option[String])(df: DataFrame): EnsemblePredictionModelType

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

    Permalink
    Definition Classes
    Params
  37. def getAlpha: Double

    Permalink

    Definition Classes
    GBMRegressorParams
  38. def getBaseLearner: EnsemblePredictorType

    Permalink

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

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

    Permalink
    Definition Classes
    Params
  41. final def getFeaturesCol: String

    Permalink
    Definition Classes
    HasFeaturesCol
  42. final def getLabelCol: String

    Permalink
    Definition Classes
    HasLabelCol
  43. def getLearningRate: Double

    Permalink

    Definition Classes
    HasLearningRate
  44. def getLoss: String

    Permalink

    Definition Classes
    GBMRegressorParams
  45. final def getMaxIter: Int

    Permalink
    Definition Classes
    HasMaxIter
  46. def getNumBaseLearners: Int

    Permalink

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

    Permalink
    Definition Classes
    HasSubBag
  48. def getNumRound: Int

    Permalink

    Definition Classes
    HasNumRound
  49. def getOptimizedWeights: Boolean

    Permalink

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

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

    Permalink
    Definition Classes
    Params
  52. final def getPredictionCol: String

    Permalink
    Definition Classes
    HasPredictionCol
  53. def getReplacement: Boolean

    Permalink

    Definition Classes
    HasSubBag
  54. def getSampleRatio: Double

    Permalink

    Definition Classes
    HasSubBag
  55. final def getSeed: Long

    Permalink
    Definition Classes
    HasSeed
  56. def getSubspaceRatio: Double

    Permalink

    Definition Classes
    HasSubBag
  57. final def getTol: Double

    Permalink
    Definition Classes
    HasTol
  58. final def getValidationIndicatorCol: String

    Permalink
    Definition Classes
    HasValidationIndicatorCol
  59. final def getWeightCol: String

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

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

    Permalink
    Definition Classes
    Params
  62. def hasParent: Boolean

    Permalink
    Definition Classes
    Model
  63. def hashCode(): Int

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

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

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

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

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

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

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

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

    Permalink

    param for the learning rate of the algorithm

    param for the learning rate of the algorithm

    Definition Classes
    HasLearningRate
  72. def log: Logger

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  84. 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
  85. final val maxIter: IntParam

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

    Permalink
    Definition Classes
    HasSubBag
  87. val models: Array[EnsemblePredictionModelType]

    Permalink
  88. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  91. 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
  92. val numBaseModels: Int

    Permalink
  93. def numFeatures: Int

    Permalink
    Definition Classes
    PredictionModel
    Annotations
    @Since( "1.6.0" )
  94. 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
  95. val optimizedWeights: Param[Boolean]

    Permalink

    param for using optimized weights in GBM

    param for using optimized weights in GBM

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

    Permalink
    Definition Classes
    Params
  97. var parent: Estimator[GBMRegressionModel]

    Permalink
    Definition Classes
    Model
  98. def predict(features: Vector): Double

    Permalink
    Definition Classes
    GBMRegressionModel → PredictionModel
  99. final val predictionCol: Param[String]

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

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

    Permalink

    param for whether samples are drawn with replacement

    param for whether samples are drawn with replacement

    Definition Classes
    HasSubBag
  102. 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
  103. def save(path: String): Unit

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

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

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

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

    Permalink
    Definition Classes
    Params
  108. final def setDefault(paramPairs: ParamPair[_]*): GBMRegressionModel.this.type

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

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  110. def setFeaturesCol(value: String): GBMRegressionModel

    Permalink
    Definition Classes
    PredictionModel
  111. def setParent(parent: Estimator[GBMRegressionModel]): GBMRegressionModel

    Permalink
    Definition Classes
    Model
  112. def setPredictionCol(value: String): GBMRegressionModel

    Permalink
    Definition Classes
    PredictionModel
  113. def slicer(subspace: SubSpace): (Vector) ⇒ Vector

    Permalink
    Definition Classes
    HasSubBag
  114. 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
  115. val subspaces: Array[SubSpace]

    Permalink
  116. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  117. 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
  118. 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
  119. 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
  120. 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
  121. def toString(): String

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

    Permalink
    Definition Classes
    HasTol
  123. def transform(dataset: Dataset[_]): DataFrame

    Permalink
    Definition Classes
    PredictionModel → Transformer
  124. def transform(dataset: Dataset[_], paramMap: ParamMap): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" )
  125. def transform(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" ) @varargs()
  126. def transformImpl(dataset: Dataset[_]): DataFrame

    Permalink
    Attributes
    protected
    Definition Classes
    PredictionModel
  127. def transformSchema(schema: StructType): StructType

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    HasWeightCol
  138. val weights: Array[Double]

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

    Permalink
    Definition Classes
    HasSubBag
  140. def write: MLWriter

    Permalink
    Definition Classes
    GBMRegressionModel → 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 PredictionModel[Vector, GBMRegressionModel]

Inherited from PredictorParams

Inherited from HasPredictionCol

Inherited from HasFeaturesCol

Inherited from HasLabelCol

Inherited from Model[GBMRegressionModel]

Inherited from Transformer

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

Ungrouped