Packages

class LightGBMRanker extends Ranker[Vector, LightGBMRanker, LightGBMRankerModel] with LightGBMBase[LightGBMRankerModel] with BasicLogging

Trains a LightGBMRanker model, a fast, distributed, high performance gradient boosting framework based on decision tree algorithms. For more information please see here: https://github.com/Microsoft/LightGBM. For parameter information see here: https://github.com/Microsoft/LightGBM/blob/master/docs/Parameters.rst

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LightGBMRanker
  2. LightGBMBase
  3. BasicLogging
  4. LightGBMParams
  5. LightGBMObjectiveParams
  6. LightGBMPredictionParams
  7. LightGBMDartParams
  8. LightGBMLearnerParams
  9. LightGBMBinParams
  10. LightGBMFractionParams
  11. LightGBMSlotParams
  12. LightGBMExecutionParams
  13. HasInitScoreCol
  14. HasValidationIndicatorCol
  15. HasWeightCol
  16. DefaultParamsWritable
  17. MLWritable
  18. Wrappable
  19. RWrappable
  20. PythonWrappable
  21. BaseWrappable
  22. Ranker
  23. HasGroupCol
  24. Predictor
  25. PredictorParams
  26. HasPredictionCol
  27. HasFeaturesCol
  28. HasLabelCol
  29. Estimator
  30. PipelineStage
  31. Logging
  32. Params
  33. Serializable
  34. Serializable
  35. Identifiable
  36. AnyRef
  37. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LightGBMRanker()
  2. new LightGBMRanker(uid: String)

    uid

    The unique ID.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def afterTrainBatch(batchIndex: Int, dataset: Dataset[_], model: LightGBMRankerModel): Unit
    Definition Classes
    LightGBMBase
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val baggingFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  8. val baggingFreq: IntParam
    Definition Classes
    LightGBMParams
  9. val baggingSeed: IntParam
    Definition Classes
    LightGBMParams
  10. def beforeTrainBatch(batchIndex: Int, dataset: Dataset[_], model: Option[LightGBMRankerModel]): Unit
    Definition Classes
    LightGBMBase
  11. val binSampleCount: IntParam
    Definition Classes
    LightGBMBinParams
  12. val boostFromAverage: BooleanParam
    Definition Classes
    LightGBMParams
  13. val boostingType: Param[String]
    Definition Classes
    LightGBMParams
  14. def castColumns(dataset: Dataset[_], trainingCols: Array[(String, Seq[DataType])]): DataFrame
    Attributes
    protected
    Definition Classes
    LightGBMBase
  15. val categoricalSlotIndexes: IntArrayParam
    Definition Classes
    LightGBMSlotParams
  16. val categoricalSlotNames: StringArrayParam
    Definition Classes
    LightGBMSlotParams
  17. val chunkSize: IntParam
    Definition Classes
    LightGBMExecutionParams
  18. lazy val classNameHelper: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  19. final def clear(param: Param[_]): LightGBMRanker.this.type
    Definition Classes
    Params
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  21. def companionModelClassName: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  22. def copy(extra: ParamMap): LightGBMRanker
    Definition Classes
    LightGBMRanker → Predictor → Estimator → PipelineStage → Params
  23. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  24. lazy val copyrightLines: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  25. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  26. val defaultListenPort: IntParam
    Definition Classes
    LightGBMExecutionParams
  27. val delegate: Option[LightGBMDelegate]
    Definition Classes
    LightGBMParams
  28. val driverListenPort: IntParam
    Definition Classes
    LightGBMExecutionParams
  29. val dropRate: DoubleParam
    Definition Classes
    LightGBMDartParams
  30. val earlyStoppingRound: IntParam
    Definition Classes
    LightGBMLearnerParams
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  33. val evalAt: IntArrayParam
  34. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  35. def explainParams(): String
    Definition Classes
    Params
  36. def extractInstances(dataset: Dataset[_], validateInstance: (Instance) ⇒ Unit): RDD[Instance]
    Attributes
    protected
    Definition Classes
    PredictorParams
  37. def extractInstances(dataset: Dataset[_]): RDD[Instance]
    Attributes
    protected
    Definition Classes
    PredictorParams
  38. def extractLabeledPoints(dataset: Dataset[_]): RDD[LabeledPoint]
    Attributes
    protected
    Definition Classes
    Predictor
  39. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  40. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  41. val featureFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  42. final val featuresCol: Param[String]
    Definition Classes
    HasFeaturesCol
  43. val featuresShapCol: Param[String]
    Definition Classes
    LightGBMPredictionParams
  44. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  45. def fit(dataset: Dataset[_]): LightGBMRankerModel
    Definition Classes
    Predictor → Estimator
  46. def fit(dataset: Dataset[_], paramMaps: Seq[ParamMap]): Seq[LightGBMRankerModel]
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  47. def fit(dataset: Dataset[_], paramMap: ParamMap): LightGBMRankerModel
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  48. def fit(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): LightGBMRankerModel
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" ) @varargs()
  49. val fobj: FObjParam
    Definition Classes
    LightGBMObjectiveParams
  50. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  51. def getBaggingFraction: Double
    Definition Classes
    LightGBMFractionParams
  52. def getBaggingFreq: Int
    Definition Classes
    LightGBMParams
  53. def getBaggingSeed: Int
    Definition Classes
    LightGBMParams
  54. def getBinSampleCount: Int
    Definition Classes
    LightGBMBinParams
  55. def getBoostFromAverage: Boolean
    Definition Classes
    LightGBMParams
  56. def getBoostingType: String
    Definition Classes
    LightGBMParams
  57. def getCategoricalIndexes(featuresSchema: StructField): Array[Int]

    Retrieves the categorical indexes in the features column.

    Retrieves the categorical indexes in the features column.

    featuresSchema

    The schema of the features column

    returns

    the categorical indexes in the features column.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  58. def getCategoricalSlotIndexes: Array[Int]
    Definition Classes
    LightGBMSlotParams
  59. def getCategoricalSlotNames: Array[String]
    Definition Classes
    LightGBMSlotParams
  60. def getChunkSize: Int
    Definition Classes
    LightGBMExecutionParams
  61. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  62. def getColumnParams: ColumnParams
    Attributes
    protected
    Definition Classes
    LightGBMBase
  63. def getDartParams: DartModeParams

    Constructs the DartModeParams

    Constructs the DartModeParams

    returns

    DartModeParams object containing parameters related to dart mode.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  64. def getDatasetParams(categoricalIndexes: Array[Int], numThreads: Int): String
    Definition Classes
    LightGBMBase
  65. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  66. def getDefaultListenPort: Int
    Definition Classes
    LightGBMExecutionParams
  67. def getDelegate: Option[LightGBMDelegate]
    Definition Classes
    LightGBMParams
  68. def getDriverListenPort: Int
    Definition Classes
    LightGBMExecutionParams
  69. def getDropRate: Double
    Definition Classes
    LightGBMDartParams
  70. def getEarlyStoppingRound: Int
    Definition Classes
    LightGBMLearnerParams
  71. def getEvalAt: Array[Int]
  72. def getExecutionParams(numTasksPerExec: Int): ExecutionParams

    Constructs the ExecutionParams.

    Constructs the ExecutionParams.

    returns

    ExecutionParams object containing parameters related to LightGBM execution.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  73. def getFObj: FObjTrait
    Definition Classes
    LightGBMObjectiveParams
  74. def getFeatureFraction: Double
    Definition Classes
    LightGBMFractionParams
  75. final def getFeaturesCol: String
    Definition Classes
    HasFeaturesCol
  76. def getFeaturesShapCol: String
    Definition Classes
    LightGBMPredictionParams
  77. def getGroupCol: String

    Definition Classes
    HasGroupCol
  78. def getImprovementTolerance: Double
    Definition Classes
    LightGBMLearnerParams
  79. def getInitScoreCol: String

    Definition Classes
    HasInitScoreCol
  80. def getIsProvideTrainingMetric: Boolean
    Definition Classes
    LightGBMParams
  81. final def getLabelCol: String
    Definition Classes
    HasLabelCol
  82. def getLabelGain: Array[Double]
  83. def getLambdaL1: Double
    Definition Classes
    LightGBMParams
  84. def getLambdaL2: Double
    Definition Classes
    LightGBMParams
  85. def getLeafPredictionCol: String
    Definition Classes
    LightGBMPredictionParams
  86. def getLearningRate: Double
    Definition Classes
    LightGBMParams
  87. def getMatrixType: String
    Definition Classes
    LightGBMExecutionParams
  88. def getMaxBin: Int
    Definition Classes
    LightGBMBinParams
  89. def getMaxBinByFeature: Array[Int]
    Definition Classes
    LightGBMParams
  90. def getMaxDeltaStep: Double
    Definition Classes
    LightGBMParams
  91. def getMaxDepth: Int
    Definition Classes
    LightGBMParams
  92. def getMaxDrop: Int
    Definition Classes
    LightGBMDartParams
  93. def getMaxPosition: Int
  94. def getMetric: String
    Definition Classes
    LightGBMParams
  95. def getMinDataInLeaf: Int
    Definition Classes
    LightGBMParams
  96. def getMinGainToSplit: Double
    Definition Classes
    LightGBMParams
  97. def getMinSumHessianInLeaf: Double
    Definition Classes
    LightGBMParams
  98. def getModel(trainParams: TrainParams, lightGBMBooster: LightGBMBooster): LightGBMRankerModel

    Gets the trained model given the train parameters and booster.

    Gets the trained model given the train parameters and booster.

    returns

    trained model.

    Definition Classes
    LightGBMRankerLightGBMBase
  99. def getModelString: String
    Definition Classes
    LightGBMParams
  100. def getNegBaggingFraction: Double
    Definition Classes
    LightGBMFractionParams
  101. def getNumBatches: Int
    Definition Classes
    LightGBMExecutionParams
  102. def getNumIterations: Int
    Definition Classes
    LightGBMParams
  103. def getNumLeaves: Int
    Definition Classes
    LightGBMParams
  104. def getNumTasks: Int
    Definition Classes
    LightGBMExecutionParams
  105. def getNumThreads: Int
    Definition Classes
    LightGBMExecutionParams
  106. def getObjective: String
    Definition Classes
    LightGBMObjectiveParams
  107. def getObjectiveParams: ObjectiveParams

    Constructs the ObjectiveParams.

    Constructs the ObjectiveParams.

    returns

    ObjectiveParams object containing parameters related to the objective function.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  108. def getOptGroupCol: Option[String]

    Optional group column for Ranking, set to None by default.

    Optional group column for Ranking, set to None by default.

    returns

    None

    Definition Classes
    LightGBMRankerLightGBMBase
  109. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  110. def getParallelism: String
    Definition Classes
    LightGBMExecutionParams
  111. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  112. def getPosBaggingFraction: Double
    Definition Classes
    LightGBMFractionParams
  113. def getPredictDisableShapeCheck: Boolean
    Definition Classes
    LightGBMPredictionParams
  114. final def getPredictionCol: String
    Definition Classes
    HasPredictionCol
  115. def getRepartitionByGroupingColumn: Boolean
    Definition Classes
    LightGBMExecutionParams
  116. def getSkipDrop: Double
    Definition Classes
    LightGBMDartParams
  117. def getSlotNames: Array[String]
    Definition Classes
    LightGBMSlotParams
  118. def getSlotNamesWithMetadata(featuresSchema: StructField): Option[Array[String]]
    Definition Classes
    LightGBMBase
  119. def getTimeout: Double
    Definition Classes
    LightGBMExecutionParams
  120. def getTopK: Int
    Definition Classes
    LightGBMExecutionParams
  121. def getTrainParams(numTasks: Int, dataset: Dataset[_], numTasksPerExec: Int): TrainParams

    Gets the training parameters.

    Gets the training parameters.

    numTasks

    The total number of tasks.

    dataset

    The training dataset.

    numTasksPerExec

    The number of tasks per executor.

    returns

    train parameters.

    Definition Classes
    LightGBMRankerLightGBMBase
  122. def getTrainingCols: Array[(String, Seq[DataType])]
    Attributes
    protected
    Definition Classes
    LightGBMBase
  123. def getUniformDrop: Boolean
    Definition Classes
    LightGBMDartParams
  124. def getUseBarrierExecutionMode: Boolean
    Definition Classes
    LightGBMExecutionParams
  125. def getUseSingleDatasetMode: Boolean
    Definition Classes
    LightGBMExecutionParams
  126. def getValidationIndicatorCol: String

    Definition Classes
    HasValidationIndicatorCol
  127. def getVerbosity: Int
    Definition Classes
    LightGBMParams
  128. def getWeightCol: String

    Definition Classes
    HasWeightCol
  129. def getXGBoostDartMode: Boolean
    Definition Classes
    LightGBMDartParams
  130. val groupCol: Param[String]

    The name of the group column

    The name of the group column

    Definition Classes
    HasGroupCol
  131. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  132. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  133. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  134. val improvementTolerance: DoubleParam
    Definition Classes
    LightGBMLearnerParams
  135. val initScoreCol: Param[String]

    The name of the initial score column

    The name of the initial score column

    Definition Classes
    HasInitScoreCol
  136. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  137. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  138. def innerTrain(dataset: Dataset[_], batchIndex: Int): LightGBMRankerModel

    Inner train method for LightGBM learners.

    Inner train method for LightGBM learners. Calculates the number of workers, creates a driver thread, and runs mapPartitions on the dataset.

    dataset

    The dataset to train on.

    batchIndex

    In running in batch training mode, gets the batch number.

    returns

    The LightGBM Model from the trained LightGBM Booster.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  139. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  140. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  141. val isProvideTrainingMetric: BooleanParam
    Definition Classes
    LightGBMParams
  142. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  143. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  144. final val labelCol: Param[String]
    Definition Classes
    HasLabelCol
  145. val labelGain: DoubleArrayParam
  146. val lambdaL1: DoubleParam
    Definition Classes
    LightGBMParams
  147. val lambdaL2: DoubleParam
    Definition Classes
    LightGBMParams
  148. val leafPredictionCol: Param[String]
    Definition Classes
    LightGBMPredictionParams
  149. val learningRate: DoubleParam
    Definition Classes
    LightGBMParams
  150. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  151. def logBase(methodName: String): Unit
    Attributes
    protected
    Definition Classes
    BasicLogging
  152. def logClass(): Unit
    Definition Classes
    BasicLogging
  153. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  154. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  155. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  156. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  157. def logErrorBase(methodName: String, e: Exception): Unit
    Attributes
    protected
    Definition Classes
    BasicLogging
  158. def logFit[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  159. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  160. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  161. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  162. def logPredict[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  163. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  164. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  165. def logTrain[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  166. def logTransform[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  167. def logVerb[T](verb: String, f: ⇒ T): T
    Definition Classes
    BasicLogging
  168. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  169. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  170. def makePyFile(conf: CodegenConfig): Unit
    Definition Classes
    PythonWrappable
  171. def makeRFile(conf: CodegenConfig): Unit
    Definition Classes
    RWrappable
  172. val matrixType: Param[String]
    Definition Classes
    LightGBMExecutionParams
  173. val maxBin: IntParam
    Definition Classes
    LightGBMBinParams
  174. val maxBinByFeature: IntArrayParam
    Definition Classes
    LightGBMParams
  175. val maxDeltaStep: DoubleParam
    Definition Classes
    LightGBMParams
  176. val maxDepth: IntParam
    Definition Classes
    LightGBMParams
  177. val maxDrop: IntParam
    Definition Classes
    LightGBMDartParams
  178. val maxPosition: IntParam
  179. val metric: Param[String]
    Definition Classes
    LightGBMParams
  180. val minDataInLeaf: IntParam
    Definition Classes
    LightGBMParams
  181. val minGainToSplit: DoubleParam
    Definition Classes
    LightGBMParams
  182. val minSumHessianInLeaf: DoubleParam
    Definition Classes
    LightGBMParams
  183. val modelString: Param[String]
    Definition Classes
    LightGBMParams
  184. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  185. val negBaggingFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  186. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  187. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  188. val numBatches: IntParam
    Definition Classes
    LightGBMExecutionParams
  189. val numIterations: IntParam
    Definition Classes
    LightGBMParams
  190. val numLeaves: IntParam
    Definition Classes
    LightGBMParams
  191. val numTasks: IntParam
    Definition Classes
    LightGBMExecutionParams
  192. val numThreads: IntParam
    Definition Classes
    LightGBMExecutionParams
  193. val objective: Param[String]
    Definition Classes
    LightGBMObjectiveParams
  194. val parallelism: Param[String]
    Definition Classes
    LightGBMExecutionParams
  195. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  196. val posBaggingFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  197. val predictDisableShapeCheck: BooleanParam
    Definition Classes
    LightGBMPredictionParams
  198. final val predictionCol: Param[String]
    Definition Classes
    HasPredictionCol
  199. def prepareDataframe(dataset: Dataset[_], numTasks: Int): DataFrame
    Definition Classes
    LightGBMRankerLightGBMBase
  200. def preprocessData(dataset: DataFrame): DataFrame

    For Ranking, we need to sort the data within partitions by group prior to training to ensure training succeeds.

    For Ranking, we need to sort the data within partitions by group prior to training to ensure training succeeds.

    dataset

    The dataset to preprocess prior to training.

    returns

    The preprocessed data, sorted within partiton by group.

    Definition Classes
    LightGBMRankerLightGBMBase
  201. def pyAdditionalMethods: String
    Definition Classes
    PythonWrappable
  202. lazy val pyClassDoc: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  203. lazy val pyClassName: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  204. def pyExtraEstimatorImports: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  205. def pyExtraEstimatorMethods: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  206. lazy val pyInheritedClasses: Seq[String]
    Attributes
    protected
    Definition Classes
    PythonWrappable
  207. def pyInitFunc(): String
    Definition Classes
    PythonWrappable
  208. lazy val pyInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    PythonWrappable
  209. lazy val pyObjectBaseClass: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  210. def pyParamArg[T](p: Param[T]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  211. def pyParamDefault[T](p: Param[T]): Option[String]
    Attributes
    protected
    Definition Classes
    PythonWrappable
  212. def pyParamGetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  213. def pyParamSetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  214. def pyParamsArgs: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  215. def pyParamsDefaults: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  216. lazy val pyParamsDefinitions: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  217. def pyParamsGetters: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  218. def pyParamsSetters: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  219. def pythonClass(): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  220. def rClass(): String
    Attributes
    protected
    Definition Classes
    RWrappable
  221. def rDocString: String
    Attributes
    protected
    Definition Classes
    RWrappable
  222. def rExtraBodyLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  223. def rExtraInitLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  224. lazy val rFuncName: String
    Attributes
    protected
    Definition Classes
    RWrappable
  225. lazy val rInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    RWrappable
  226. def rParamArg[T](p: Param[T]): String
    Attributes
    protected
    Definition Classes
    RWrappable
  227. def rParamsArgs: String
    Attributes
    protected
    Definition Classes
    RWrappable
  228. def rSetterLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  229. val repartitionByGroupingColumn: BooleanParam
    Definition Classes
    LightGBMExecutionParams
  230. def save(path: String): Unit
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  231. final def set(paramPair: ParamPair[_]): LightGBMRanker.this.type
    Attributes
    protected
    Definition Classes
    Params
  232. final def set(param: String, value: Any): LightGBMRanker.this.type
    Attributes
    protected
    Definition Classes
    Params
  233. final def set[T](param: Param[T], value: T): LightGBMRanker.this.type
    Definition Classes
    Params
  234. def setBaggingFraction(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMFractionParams
  235. def setBaggingFreq(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  236. def setBaggingSeed(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  237. def setBinSampleCount(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMBinParams
  238. def setBoostFromAverage(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  239. def setBoostingType(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  240. def setCategoricalSlotIndexes(value: Array[Int]): LightGBMRanker.this.type
    Definition Classes
    LightGBMSlotParams
  241. def setCategoricalSlotNames(value: Array[String]): LightGBMRanker.this.type
    Definition Classes
    LightGBMSlotParams
  242. def setChunkSize(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  243. final def setDefault(paramPairs: ParamPair[_]*): LightGBMRanker.this.type
    Attributes
    protected
    Definition Classes
    Params
  244. final def setDefault[T](param: Param[T], value: T): LightGBMRanker.this.type
    Attributes
    protected
    Definition Classes
    Params
  245. def setDefaultListenPort(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  246. def setDelegate(delegate: LightGBMDelegate): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  247. def setDriverListenPort(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  248. def setDropRate(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMDartParams
  249. def setEarlyStoppingRound(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMLearnerParams
  250. def setEvalAt(value: Array[Int]): LightGBMRanker.this.type
  251. def setFObj(value: FObjTrait): LightGBMRanker.this.type
    Definition Classes
    LightGBMObjectiveParams
  252. def setFeatureFraction(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMFractionParams
  253. def setFeaturesCol(value: String): LightGBMRanker
    Definition Classes
    Predictor
  254. def setFeaturesShapCol(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMPredictionParams
  255. def setGroupCol(value: String): LightGBMRanker.this.type

    Definition Classes
    HasGroupCol
  256. def setImprovementTolerance(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMLearnerParams
  257. def setInitScoreCol(value: String): LightGBMRanker.this.type

    Definition Classes
    HasInitScoreCol
  258. def setIsProvideTrainingMetric(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  259. def setLabelCol(value: String): LightGBMRanker
    Definition Classes
    Predictor
  260. def setLabelGain(value: Array[Double]): LightGBMRanker.this.type
  261. def setLambdaL1(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  262. def setLambdaL2(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  263. def setLeafPredictionCol(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMPredictionParams
  264. def setLearningRate(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  265. def setMatrixType(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  266. def setMaxBin(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMBinParams
  267. def setMaxBinByFeature(value: Array[Int]): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  268. def setMaxDeltaStep(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  269. def setMaxDepth(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  270. def setMaxDrop(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMDartParams
  271. def setMaxPosition(value: Int): LightGBMRanker.this.type
  272. def setMetric(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  273. def setMinDataInLeaf(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  274. def setMinGainToSplit(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  275. def setMinSumHessianInLeaf(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  276. def setModelString(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  277. def setNegBaggingFraction(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMFractionParams
  278. def setNumBatches(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  279. def setNumIterations(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  280. def setNumLeaves(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  281. def setNumTasks(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  282. def setNumThreads(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  283. def setObjective(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMObjectiveParams
  284. def setParallelism(value: String): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  285. def setPosBaggingFraction(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMFractionParams
  286. def setPredictDisableShapeCheck(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMPredictionParams
  287. def setPredictionCol(value: String): LightGBMRanker
    Definition Classes
    Predictor
  288. def setRepartitionByGroupingColumn(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  289. def setSkipDrop(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMDartParams
  290. def setSlotNames(value: Array[String]): LightGBMRanker.this.type
    Definition Classes
    LightGBMSlotParams
  291. def setTimeout(value: Double): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  292. def setTopK(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  293. def setUniformDrop(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMDartParams
  294. def setUseBarrierExecutionMode(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  295. def setUseSingleDatasetMode(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMExecutionParams
  296. def setValidationIndicatorCol(value: String): LightGBMRanker.this.type

    Definition Classes
    HasValidationIndicatorCol
  297. def setVerbosity(value: Int): LightGBMRanker.this.type
    Definition Classes
    LightGBMParams
  298. def setWeightCol(value: String): LightGBMRanker.this.type

    Definition Classes
    HasWeightCol
  299. def setXGBoostDartMode(value: Boolean): LightGBMRanker.this.type
    Definition Classes
    LightGBMDartParams
  300. val skipDrop: DoubleParam
    Definition Classes
    LightGBMDartParams
  301. val slotNames: StringArrayParam
    Definition Classes
    LightGBMSlotParams
  302. def stringFromTrainedModel(model: LightGBMRankerModel): String
    Definition Classes
    LightGBMRankerLightGBMBase
  303. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  304. val timeout: DoubleParam
    Definition Classes
    LightGBMExecutionParams
  305. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  306. val topK: IntParam
    Definition Classes
    LightGBMExecutionParams
  307. def train(dataset: Dataset[_]): LightGBMRankerModel

    Trains the LightGBM model.

    Trains the LightGBM model. If batches are specified, breaks training dataset into batches for training.

    dataset

    The input dataset to train.

    returns

    The trained model.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  308. def transformSchema(schema: StructType): StructType
    Definition Classes
    Predictor → PipelineStage
  309. def transformSchema(schema: StructType, logging: Boolean): StructType
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  310. val uid: String
    Definition Classes
    LightGBMRankerBasicLogging → Identifiable
  311. val uniformDrop: BooleanParam
    Definition Classes
    LightGBMDartParams
  312. val useBarrierExecutionMode: BooleanParam
    Definition Classes
    LightGBMExecutionParams
  313. val useSingleDatasetMode: BooleanParam
    Definition Classes
    LightGBMExecutionParams
  314. def validateAndTransformSchema(schema: StructType, fitting: Boolean, featuresDataType: DataType): StructType
    Attributes
    protected
    Definition Classes
    PredictorParams
  315. val validationIndicatorCol: Param[String]

    The name of the validation indicator column

    The name of the validation indicator column

    Definition Classes
    HasValidationIndicatorCol
  316. val ver: String
    Definition Classes
    BasicLogging
  317. val verbosity: IntParam
    Definition Classes
    LightGBMParams
  318. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  319. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  320. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  321. val weightCol: Param[String]

    The name of the weight column

    The name of the weight column

    Definition Classes
    HasWeightCol
  322. def write: MLWriter
    Definition Classes
    DefaultParamsWritable → MLWritable
  323. val xgboostDartMode: BooleanParam
    Definition Classes
    LightGBMDartParams

Inherited from BasicLogging

Inherited from LightGBMParams

Inherited from LightGBMObjectiveParams

Inherited from LightGBMPredictionParams

Inherited from LightGBMDartParams

Inherited from LightGBMLearnerParams

Inherited from LightGBMBinParams

Inherited from LightGBMFractionParams

Inherited from LightGBMSlotParams

Inherited from LightGBMExecutionParams

Inherited from HasInitScoreCol

Inherited from HasValidationIndicatorCol

Inherited from HasWeightCol

Inherited from DefaultParamsWritable

Inherited from MLWritable

Inherited from Wrappable

Inherited from RWrappable

Inherited from PythonWrappable

Inherited from BaseWrappable

Inherited from Ranker[Vector, LightGBMRanker, LightGBMRankerModel]

Inherited from HasGroupCol

Inherited from Predictor[Vector, LightGBMRanker, LightGBMRankerModel]

Inherited from PredictorParams

Inherited from HasPredictionCol

Inherited from HasFeaturesCol

Inherited from HasLabelCol

Inherited from Estimator[LightGBMRankerModel]

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