class LightGBMClassifier extends ProbabilisticClassifier[Vector, LightGBMClassifier, LightGBMClassificationModel] with LightGBMBase[LightGBMClassificationModel] with BasicLogging

Trains a LightGBM Classification 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

Linear Supertypes
LightGBMBase[LightGBMClassificationModel], BasicLogging, LightGBMPerformance, LightGBMParams, LightGBMCategoricalParams, LightGBMSeedParams, LightGBMObjectiveParams, LightGBMPredictionParams, LightGBMDartParams, LightGBMDatasetParams, LightGBMLearnerParams, LightGBMBinParams, LightGBMFractionParams, LightGBMSlotParams, LightGBMExecutionParams, HasInitScoreCol, HasValidationIndicatorCol, HasWeightCol, DefaultParamsWritable, MLWritable, Wrappable, DotnetWrappable, RWrappable, PythonWrappable, BaseWrappable, ProbabilisticClassifier[Vector, LightGBMClassifier, LightGBMClassificationModel], ProbabilisticClassifierParams, HasThresholds, HasProbabilityCol, Classifier[Vector, LightGBMClassifier, LightGBMClassificationModel], ClassifierParams, HasRawPredictionCol, Predictor[Vector, LightGBMClassifier, LightGBMClassificationModel], PredictorParams, HasPredictionCol, HasFeaturesCol, HasLabelCol, Estimator[LightGBMClassificationModel], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LightGBMClassifier
  2. LightGBMBase
  3. BasicLogging
  4. LightGBMPerformance
  5. LightGBMParams
  6. LightGBMCategoricalParams
  7. LightGBMSeedParams
  8. LightGBMObjectiveParams
  9. LightGBMPredictionParams
  10. LightGBMDartParams
  11. LightGBMDatasetParams
  12. LightGBMLearnerParams
  13. LightGBMBinParams
  14. LightGBMFractionParams
  15. LightGBMSlotParams
  16. LightGBMExecutionParams
  17. HasInitScoreCol
  18. HasValidationIndicatorCol
  19. HasWeightCol
  20. DefaultParamsWritable
  21. MLWritable
  22. Wrappable
  23. DotnetWrappable
  24. RWrappable
  25. PythonWrappable
  26. BaseWrappable
  27. ProbabilisticClassifier
  28. ProbabilisticClassifierParams
  29. HasThresholds
  30. HasProbabilityCol
  31. Classifier
  32. ClassifierParams
  33. HasRawPredictionCol
  34. Predictor
  35. PredictorParams
  36. HasPredictionCol
  37. HasFeaturesCol
  38. HasLabelCol
  39. Estimator
  40. PipelineStage
  41. Logging
  42. Params
  43. Serializable
  44. Serializable
  45. Identifiable
  46. AnyRef
  47. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LightGBMClassifier()
  2. new LightGBMClassifier(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 addCustomTrainParams(params: BaseTrainParams, dataset: Dataset[_]): BaseTrainParams
    Attributes
    protected
    Definition Classes
    LightGBMClassifierLightGBMBase
  6. def afterTrainBatch(batchIndex: Int, dataset: Dataset[_], model: LightGBMClassificationModel): Unit
    Definition Classes
    LightGBMBase
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val baggingFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  9. val baggingFreq: IntParam
    Definition Classes
    LightGBMParams
  10. val baggingSeed: IntParam
    Definition Classes
    LightGBMSeedParams
  11. def beforeTrainBatch(batchIndex: Int, dataset: Dataset[_], model: Option[LightGBMClassificationModel]): Unit
    Definition Classes
    LightGBMBase
  12. val binSampleCount: IntParam
    Definition Classes
    LightGBMBinParams
  13. val boostFromAverage: BooleanParam
    Definition Classes
    LightGBMParams
  14. val boostingType: Param[String]
    Definition Classes
    LightGBMParams
  15. def calculateColumnStatistics(dataframe: DataFrame, measures: InstrumentationMeasures): (Int, Int)

    Extract column counts from the dataset.

    Extract column counts from the dataset.

    dataframe

    The dataset to train on.

    returns

    The number of feature columns and initial score classes

    Attributes
    protected
    Definition Classes
    LightGBMBase
  16. def calculateRowStatistics(dataframe: DataFrame, trainingParams: BaseTrainParams, numCols: Int, measures: InstrumentationMeasures): (Array[Row], Array[Long])

    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.

    dataframe

    The dataset to train on.

    trainingParams

    The training parameters.

    numCols

    The number of feature columns.

    returns

    The serialized Dataset reference and an array of partition counts.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  17. def castColumns(dataset: Dataset[_], trainingCols: Array[(String, Seq[DataType])]): DataFrame
    Attributes
    protected
    Definition Classes
    LightGBMBase
  18. val catSmooth: DoubleParam
    Definition Classes
    LightGBMCategoricalParams
  19. val categoricalSlotIndexes: IntArrayParam
    Definition Classes
    LightGBMSlotParams
  20. val categoricalSlotNames: StringArrayParam
    Definition Classes
    LightGBMSlotParams
  21. val catl2: DoubleParam
    Definition Classes
    LightGBMCategoricalParams
  22. val chunkSize: IntParam
    Definition Classes
    LightGBMExecutionParams
  23. lazy val classNameHelper: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  24. final def clear(param: Param[_]): LightGBMClassifier.this.type
    Definition Classes
    Params
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def companionModelClassName: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  27. def copy(extra: ParamMap): LightGBMClassifier
    Definition Classes
    LightGBMClassifier → Predictor → Estimator → PipelineStage → Params
  28. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  29. lazy val copyrightLines: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  30. val dataRandomSeed: IntParam
    Definition Classes
    LightGBMSeedParams
  31. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  32. val defaultListenPort: IntParam
    Definition Classes
    LightGBMExecutionParams
  33. val delegate: Option[LightGBMDelegate]
    Definition Classes
    LightGBMParams
  34. val deterministic: BooleanParam
    Definition Classes
    LightGBMSeedParams
  35. def dotnetAdditionalMethods: String
    Definition Classes
    DotnetWrappable
  36. def dotnetClass(): String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  37. lazy val dotnetClassName: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  38. lazy val dotnetClassNameString: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  39. lazy val dotnetClassWrapperName: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  40. lazy val dotnetCopyrightLines: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  41. def dotnetExtraEstimatorImports: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  42. def dotnetExtraMethods: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  43. lazy val dotnetInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  44. def dotnetMLReadWriteMethods: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  45. lazy val dotnetNamespace: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  46. lazy val dotnetObjectBaseClass: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  47. def dotnetParamGetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  48. def dotnetParamGetters: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  49. def dotnetParamSetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  50. def dotnetParamSetters: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  51. def dotnetWrapAsTypeMethod: String
    Attributes
    protected
    Definition Classes
    DotnetWrappable
  52. val driverListenPort: IntParam
    Definition Classes
    LightGBMExecutionParams
  53. val dropRate: DoubleParam
    Definition Classes
    LightGBMDartParams
  54. val dropSeed: IntParam
    Definition Classes
    LightGBMSeedParams
  55. val earlyStoppingRound: IntParam
    Definition Classes
    LightGBMLearnerParams
  56. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  57. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  58. def executePartitionTasks(ctx: TrainingContext, dataframe: DataFrame, measures: InstrumentationMeasures): LightGBMBooster
    Attributes
    protected
    Definition Classes
    LightGBMBase
  59. def executeTraining(dataframe: DataFrame, validationData: Option[Broadcast[Array[Row]]], broadcastedSampleData: Option[Broadcast[Array[Row]]], partitionCounts: Option[Array[Long]], trainParams: BaseTrainParams, numCols: Int, numInitValueClasses: Int, batchIndex: Int, numTasks: Int, numTasksPerExecutor: Int, measures: InstrumentationMeasures): LightGBMClassificationModel

    Run a parallel job via map partitions to initialize the native library and network, translate the data to the LightGBM in-memory representation and train the models.

    Run a parallel job via map partitions to initialize the native library and network, translate the data to the LightGBM in-memory representation and train the models.

    dataframe

    The dataset to train on.

    validationData

    The dataset to use as validation. (optional)

    broadcastedSampleData

    Sample data to use for streaming mode Dataset creation (optional).

    partitionCounts

    The count per partition for streaming mode (optional).

    trainParams

    Training parameters.

    numCols

    Number of columns.

    numInitValueClasses

    Number of classes for initial values (used only for multiclass).

    batchIndex

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

    numTasks

    Number of tasks/partitions.

    numTasksPerExecutor

    Number of tasks per executor.

    measures

    Instrumentation measures to populate.

    returns

    The LightGBM Model from the trained LightGBM Booster.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  60. val executionMode: Param[String]
    Definition Classes
    LightGBMExecutionParams
  61. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  62. def explainParams(): String
    Definition Classes
    Params
  63. val extraSeed: IntParam
    Definition Classes
    LightGBMSeedParams
  64. def extractInstances(dataset: Dataset[_], numClasses: Int): RDD[Instance]
    Attributes
    protected
    Definition Classes
    ClassifierParams
  65. def extractInstances(dataset: Dataset[_], validateInstance: (Instance) ⇒ Unit): RDD[Instance]
    Attributes
    protected
    Definition Classes
    PredictorParams
  66. def extractInstances(dataset: Dataset[_]): RDD[Instance]
    Attributes
    protected
    Definition Classes
    PredictorParams
  67. def extractLabeledPoints(dataset: Dataset[_], numClasses: Int): RDD[LabeledPoint]
    Attributes
    protected
    Definition Classes
    Classifier
  68. def extractLabeledPoints(dataset: Dataset[_]): RDD[LabeledPoint]
    Attributes
    protected
    Definition Classes
    Predictor
  69. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  70. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  71. val featureFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  72. val featureFractionByNode: DoubleParam
    Definition Classes
    LightGBMFractionParams
  73. val featureFractionSeed: IntParam
    Definition Classes
    LightGBMSeedParams
  74. final val featuresCol: Param[String]
    Definition Classes
    HasFeaturesCol
  75. val featuresShapCol: Param[String]
    Definition Classes
    LightGBMPredictionParams
  76. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  77. def fit(dataset: Dataset[_]): LightGBMClassificationModel
    Definition Classes
    Predictor → Estimator
  78. def fit(dataset: Dataset[_], paramMaps: Seq[ParamMap]): Seq[LightGBMClassificationModel]
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  79. def fit(dataset: Dataset[_], paramMap: ParamMap): LightGBMClassificationModel
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  80. def fit(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): LightGBMClassificationModel
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" ) @varargs()
  81. val fobj: FObjParam
    Definition Classes
    LightGBMObjectiveParams
  82. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  83. def getAllPerformanceMeasures: Option[Array[InstrumentationMeasures]]
    Definition Classes
    LightGBMPerformance
  84. def getBaggingFraction: Double
    Definition Classes
    LightGBMFractionParams
  85. def getBaggingFreq: Int
    Definition Classes
    LightGBMParams
  86. def getBaggingSeed: Int
    Definition Classes
    LightGBMSeedParams
  87. def getBinSampleCount: Int
    Definition Classes
    LightGBMBinParams
  88. def getBoostFromAverage: Boolean
    Definition Classes
    LightGBMParams
  89. def getBoostingType: String
    Definition Classes
    LightGBMParams
  90. def getCatSmooth: Double
    Definition Classes
    LightGBMCategoricalParams
  91. 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
  92. def getCategoricalParams: CategoricalParams

    Constructs the CategoricalParams.

    Constructs the CategoricalParams.

    returns

    CategoricalParams object containing the parameters related to LightGBM categorical features.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  93. def getCategoricalSlotIndexes: Array[Int]
    Definition Classes
    LightGBMSlotParams
  94. def getCategoricalSlotNames: Array[String]
    Definition Classes
    LightGBMSlotParams
  95. def getCatl2: Double
    Definition Classes
    LightGBMCategoricalParams
  96. def getChunkSize: Int
    Definition Classes
    LightGBMExecutionParams
  97. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  98. def getColumnParams: ColumnParams

    Constructs the ColumnParams.

    Constructs the ColumnParams.

    returns

    ColumnParams object containing the parameters related to LightGBM columns.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  99. def getDartParams: DartModeParams

    Constructs the DartModeParams

    Constructs the DartModeParams

    returns

    DartModeParams object containing parameters related to dart mode.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  100. def getDataRandomSeed: Int
    Definition Classes
    LightGBMSeedParams
  101. def getDatasetCreationParams(categoricalIndexes: Array[Int], numThreads: Int): String
    Definition Classes
    LightGBMBase
  102. def getDatasetParams: DatasetParams

    Constructs the DatasetParams.

    Constructs the DatasetParams.

    returns

    DatasetParams object containing parameters related to LightGBM Dataset parameters.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  103. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  104. def getDefaultListenPort: Int
    Definition Classes
    LightGBMExecutionParams
  105. def getDelegate: Option[LightGBMDelegate]
    Definition Classes
    LightGBMParams
  106. def getDeterministic: Boolean
    Definition Classes
    LightGBMSeedParams
  107. def getDriverListenPort: Int
    Definition Classes
    LightGBMExecutionParams
  108. def getDropRate: Double
    Definition Classes
    LightGBMDartParams
  109. def getDropSeed: Int
    Definition Classes
    LightGBMSeedParams
  110. def getEarlyStoppingRound: Int
    Definition Classes
    LightGBMLearnerParams
  111. def getExecutionMode: String
    Definition Classes
    LightGBMExecutionParams
  112. 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
  113. def getExtraSeed: Int
    Definition Classes
    LightGBMSeedParams
  114. def getFObj: FObjTrait
    Definition Classes
    LightGBMObjectiveParams
  115. def getFeatureFraction: Double
    Definition Classes
    LightGBMFractionParams
  116. def getFeatureFractionByNode: Double
    Definition Classes
    LightGBMFractionParams
  117. def getFeatureFractionSeed: Int
    Definition Classes
    LightGBMSeedParams
  118. final def getFeaturesCol: String
    Definition Classes
    HasFeaturesCol
  119. def getFeaturesShapCol: String
    Definition Classes
    LightGBMPredictionParams
  120. def getGeneralParams(numTasks: Int, featuresSchema: StructField): GeneralParams

    Constructs the GeneralParams.

    Constructs the GeneralParams.

    returns

    GeneralParams object containing parameters related to general LightGBM parameters.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  121. def getImprovementTolerance: Double
    Definition Classes
    LightGBMLearnerParams
  122. def getInitScoreCol: String

    Definition Classes
    HasInitScoreCol
  123. def getIsEnableSparse: Boolean
    Definition Classes
    LightGBMDatasetParams
  124. def getIsProvideTrainingMetric: Boolean
    Definition Classes
    LightGBMParams
  125. def getIsUnbalance: Boolean
  126. final def getLabelCol: String
    Definition Classes
    HasLabelCol
  127. def getLambdaL1: Double
    Definition Classes
    LightGBMParams
  128. def getLambdaL2: Double
    Definition Classes
    LightGBMParams
  129. def getLeafPredictionCol: String
    Definition Classes
    LightGBMPredictionParams
  130. def getLearningRate: Double
    Definition Classes
    LightGBMParams
  131. def getMatrixType: String
    Definition Classes
    LightGBMExecutionParams
  132. def getMaxBin: Int
    Definition Classes
    LightGBMBinParams
  133. def getMaxBinByFeature: Array[Int]
    Definition Classes
    LightGBMParams
  134. def getMaxCatThreshold: Int
    Definition Classes
    LightGBMCategoricalParams
  135. def getMaxCatToOnehot: Int
    Definition Classes
    LightGBMCategoricalParams
  136. def getMaxDeltaStep: Double
    Definition Classes
    LightGBMParams
  137. def getMaxDepth: Int
    Definition Classes
    LightGBMParams
  138. def getMaxDrop: Int
    Definition Classes
    LightGBMDartParams
  139. def getMetric: String
    Definition Classes
    LightGBMParams
  140. def getMicroBatchSize: Int
    Definition Classes
    LightGBMExecutionParams
  141. def getMinDataInLeaf: Int
    Definition Classes
    LightGBMParams
  142. def getMinDataPerBin: Int
    Definition Classes
    LightGBMParams
  143. def getMinDataPerGroup: Int
    Definition Classes
    LightGBMCategoricalParams
  144. def getMinGainToSplit: Double
    Definition Classes
    LightGBMParams
  145. def getMinSumHessianInLeaf: Double
    Definition Classes
    LightGBMParams
  146. def getModel(trainParams: BaseTrainParams, lightGBMBooster: LightGBMBooster): LightGBMClassificationModel

    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
    LightGBMClassifierLightGBMBase
  147. def getModelString: String
    Definition Classes
    LightGBMParams
  148. def getMonotoneConstraints: Array[Int]
    Definition Classes
    LightGBMLearnerParams
  149. def getMonotoneConstraintsMethod: String
    Definition Classes
    LightGBMLearnerParams
  150. def getMonotonePenalty: Double
    Definition Classes
    LightGBMLearnerParams
  151. def getNegBaggingFraction: Double
    Definition Classes
    LightGBMFractionParams
  152. def getNumBatches: Int
    Definition Classes
    LightGBMExecutionParams
  153. def getNumClasses(dataset: Dataset[_], maxNumClasses: Int): Int
    Attributes
    protected
    Definition Classes
    Classifier
  154. def getNumIterations: Int
    Definition Classes
    LightGBMParams
  155. def getNumLeaves: Int
    Definition Classes
    LightGBMParams
  156. def getNumTasks: Int
    Definition Classes
    LightGBMExecutionParams
  157. def getNumThreads: Int
    Definition Classes
    LightGBMExecutionParams
  158. def getObjective: String
    Definition Classes
    LightGBMObjectiveParams
  159. def getObjectiveParams: ObjectiveParams

    Constructs the ObjectiveParams.

    Constructs the ObjectiveParams.

    returns

    ObjectiveParams object containing parameters related to the objective function.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  160. def getObjectiveSeed: Int
    Definition Classes
    LightGBMSeedParams
  161. 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

    Attributes
    protected
    Definition Classes
    LightGBMBase
  162. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  163. def getOtherRate: Double
    Definition Classes
    LightGBMLearnerParams
  164. def getParallelism: String
    Definition Classes
    LightGBMExecutionParams
  165. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  166. def getParamInfo(p: Param[_]): ParamInfo[_]
    Definition Classes
    BaseWrappable
  167. def getPassThroughArgs: String
    Definition Classes
    LightGBMExecutionParams
  168. def getPerformanceMeasures: Option[InstrumentationMeasures]

    In the common case of 1 batch, there is only 1 measure, so this is a convenience method.

    In the common case of 1 batch, there is only 1 measure, so this is a convenience method.

    Definition Classes
    LightGBMPerformance
  169. def getPosBaggingFraction: Double
    Definition Classes
    LightGBMFractionParams
  170. def getPredictDisableShapeCheck: Boolean
    Definition Classes
    LightGBMPredictionParams
  171. final def getPredictionCol: String
    Definition Classes
    HasPredictionCol
  172. final def getProbabilityCol: String
    Definition Classes
    HasProbabilityCol
  173. final def getRawPredictionCol: String
    Definition Classes
    HasRawPredictionCol
  174. def getRepartitionByGroupingColumn: Boolean
    Definition Classes
    LightGBMExecutionParams
  175. def getSeed: Int
    Definition Classes
    LightGBMSeedParams
  176. def getSeedParams: SeedParams

    Constructs the SeedParams.

    Constructs the SeedParams.

    returns

    SeedParams object containing the parameters related to LightGBM seeds and determinism.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  177. def getSkipDrop: Double
    Definition Classes
    LightGBMDartParams
  178. def getSlotNames: Array[String]
    Definition Classes
    LightGBMSlotParams
  179. def getSlotNamesWithMetadata(featuresSchema: StructField): Option[Array[String]]
    Definition Classes
    LightGBMBase
  180. def getThresholds: Array[Double]
    Definition Classes
    HasThresholds
  181. def getTimeout: Double
    Definition Classes
    LightGBMExecutionParams
  182. def getTopK: Int
    Definition Classes
    LightGBMExecutionParams
  183. def getTopRate: Double
    Definition Classes
    LightGBMLearnerParams
  184. def getTrainParams(numTasks: Int, featuresSchema: StructField, numTasksPerExec: Int): BaseTrainParams

    Gets the training parameters.

    Gets the training parameters.

    numTasks

    The total number of tasks.

    featuresSchema

    The features column schema.

    numTasksPerExec

    The number of tasks per executor.

    returns

    train parameters.

    Definition Classes
    LightGBMClassifierLightGBMBase
  185. def getTrainingCols: Array[(String, Seq[DataType])]
    Attributes
    protected
    Definition Classes
    LightGBMBase
  186. def getTrainingContext(dataframe: DataFrame, validationData: Option[Broadcast[Array[Row]]], broadcastedSampleData: Option[Broadcast[Array[Row]]], partitionCounts: Option[Array[Long]], trainParams: BaseTrainParams, numCols: Int, numInitValueClasses: Int, batchIndex: Int, numTasksPerExecutor: Int, networkManager: NetworkManager): TrainingContext

    Get the object that holds all relevant context information for the training session.

    Get the object that holds all relevant context information for the training session.

    dataframe

    The dataset to train on.

    validationData

    The dataset to use as validation. (optional)

    broadcastedSampleData

    Sample data to use for streaming mode Dataset creation (optional).

    partitionCounts

    The count per partition for streaming mode (optional).

    trainParams

    Training parameters.

    numCols

    Number of columns.

    numInitValueClasses

    Number of classes for initial values (used only for multiclass).

    batchIndex

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

    numTasksPerExecutor

    Number of tasks per executor.

    networkManager

    The network manager.

    returns

    The context of the training session.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  187. def getUniformDrop: Boolean
    Definition Classes
    LightGBMDartParams
  188. def getUseBarrierExecutionMode: Boolean
    Definition Classes
    LightGBMExecutionParams
  189. def getUseMissing: Boolean
    Definition Classes
    LightGBMDatasetParams
  190. def getUseSingleDatasetMode: Boolean
    Definition Classes
    LightGBMExecutionParams
  191. def getValidationIndicatorCol: String

    Definition Classes
    HasValidationIndicatorCol
  192. def getVerbosity: Int
    Definition Classes
    LightGBMParams
  193. def getWeightCol: String

    Definition Classes
    HasWeightCol
  194. def getXGBoostDartMode: Boolean
    Definition Classes
    LightGBMDartParams
  195. def getZeroAsMissing: Boolean
    Definition Classes
    LightGBMDatasetParams
  196. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  197. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  198. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  199. val improvementTolerance: DoubleParam
    Definition Classes
    LightGBMLearnerParams
  200. def initPerformanceMeasures(batchCount: Int): Unit
    Attributes
    protected
    Definition Classes
    LightGBMPerformance
  201. val initScoreCol: Param[String]

    The name of the initial score column

    The name of the initial score column

    Definition Classes
    HasInitScoreCol
  202. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  203. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  204. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  205. val isEnableSparse: BooleanParam
    Definition Classes
    LightGBMDatasetParams
  206. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  207. val isProvideTrainingMetric: BooleanParam
    Definition Classes
    LightGBMParams
  208. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  209. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  210. val isUnbalance: BooleanParam
  211. final val labelCol: Param[String]
    Definition Classes
    HasLabelCol
  212. val lambdaL1: DoubleParam
    Definition Classes
    LightGBMParams
  213. val lambdaL2: DoubleParam
    Definition Classes
    LightGBMParams
  214. val leafPredictionCol: Param[String]
    Definition Classes
    LightGBMPredictionParams
  215. val learningRate: DoubleParam
    Definition Classes
    LightGBMParams
  216. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  217. def logBase(methodName: String): Unit
    Attributes
    protected
    Definition Classes
    BasicLogging
  218. def logClass(): Unit
    Definition Classes
    BasicLogging
  219. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  220. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  221. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  222. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  223. def logErrorBase(methodName: String, e: Exception): Unit
    Attributes
    protected
    Definition Classes
    BasicLogging
  224. def logFit[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  225. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  226. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  227. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  228. def logPredict[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  229. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  230. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  231. def logTrain[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  232. def logTransform[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  233. def logVerb[T](verb: String, f: ⇒ T): T
    Definition Classes
    BasicLogging
  234. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  235. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  236. def makeDotnetFile(conf: CodegenConfig): Unit
    Definition Classes
    DotnetWrappable
  237. def makePyFile(conf: CodegenConfig): Unit
    Definition Classes
    PythonWrappable
  238. def makeRFile(conf: CodegenConfig): Unit
    Definition Classes
    RWrappable
  239. val matrixType: Param[String]
    Definition Classes
    LightGBMExecutionParams
  240. val maxBin: IntParam
    Definition Classes
    LightGBMBinParams
  241. val maxBinByFeature: IntArrayParam
    Definition Classes
    LightGBMParams
  242. val maxCatThreshold: IntParam
    Definition Classes
    LightGBMCategoricalParams
  243. val maxCatToOnehot: IntParam
    Definition Classes
    LightGBMCategoricalParams
  244. val maxDeltaStep: DoubleParam
    Definition Classes
    LightGBMParams
  245. val maxDepth: IntParam
    Definition Classes
    LightGBMParams
  246. val maxDrop: IntParam
    Definition Classes
    LightGBMDartParams
  247. val metric: Param[String]
    Definition Classes
    LightGBMParams
  248. val microBatchSize: IntParam
    Definition Classes
    LightGBMExecutionParams
  249. val minDataInLeaf: IntParam
    Definition Classes
    LightGBMParams
  250. val minDataPerBin: IntParam
    Definition Classes
    LightGBMParams
  251. val minDataPerGroup: IntParam
    Definition Classes
    LightGBMCategoricalParams
  252. val minGainToSplit: DoubleParam
    Definition Classes
    LightGBMParams
  253. val minSumHessianInLeaf: DoubleParam
    Definition Classes
    LightGBMParams
  254. val modelString: Param[String]
    Definition Classes
    LightGBMParams
  255. val monotoneConstraints: IntArrayParam
    Definition Classes
    LightGBMLearnerParams
  256. val monotoneConstraintsMethod: Param[String]
    Definition Classes
    LightGBMLearnerParams
  257. val monotonePenalty: DoubleParam
    Definition Classes
    LightGBMLearnerParams
  258. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  259. val negBaggingFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  260. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  261. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  262. val numBatches: IntParam
    Definition Classes
    LightGBMExecutionParams
  263. val numIterations: IntParam
    Definition Classes
    LightGBMParams
  264. val numLeaves: IntParam
    Definition Classes
    LightGBMParams
  265. val numTasks: IntParam
    Definition Classes
    LightGBMExecutionParams
  266. val numThreads: IntParam
    Definition Classes
    LightGBMExecutionParams
  267. val objective: Param[String]
    Definition Classes
    LightGBMObjectiveParams
  268. val objectiveSeed: IntParam
    Definition Classes
    LightGBMSeedParams
  269. val otherRate: DoubleParam
    Definition Classes
    LightGBMLearnerParams
  270. val parallelism: Param[String]
    Definition Classes
    LightGBMExecutionParams
  271. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  272. val passThroughArgs: Param[String]
    Definition Classes
    LightGBMExecutionParams
  273. val posBaggingFraction: DoubleParam
    Definition Classes
    LightGBMFractionParams
  274. val predictDisableShapeCheck: BooleanParam
    Definition Classes
    LightGBMPredictionParams
  275. final val predictionCol: Param[String]
    Definition Classes
    HasPredictionCol
  276. def prepareDataframe(dataset: Dataset[_], numTasks: Int): DataFrame
    Attributes
    protected
    Definition Classes
    LightGBMBase
  277. def preprocessData(df: DataFrame): DataFrame

    Allow algorithm specific preprocessing of dataset.

    Allow algorithm specific preprocessing of dataset.

    df

    The dataframe to preprocess prior to training.

    returns

    The preprocessed data.

    Attributes
    protected
    Definition Classes
    LightGBMBase
  278. final val probabilityCol: Param[String]
    Definition Classes
    HasProbabilityCol
  279. def pyAdditionalMethods: String
    Definition Classes
    PythonWrappable
  280. lazy val pyClassDoc: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  281. lazy val pyClassName: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  282. def pyExtraEstimatorImports: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  283. def pyExtraEstimatorMethods: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  284. lazy val pyInheritedClasses: Seq[String]
    Attributes
    protected
    Definition Classes
    PythonWrappable
  285. def pyInitFunc(): String
    Definition Classes
    PythonWrappable
  286. lazy val pyInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    PythonWrappable
  287. lazy val pyObjectBaseClass: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  288. def pyParamArg[T](p: Param[T]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  289. def pyParamDefault[T](p: Param[T]): Option[String]
    Attributes
    protected
    Definition Classes
    PythonWrappable
  290. def pyParamGetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  291. def pyParamSetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  292. def pyParamsArgs: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  293. def pyParamsDefaults: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  294. lazy val pyParamsDefinitions: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  295. def pyParamsGetters: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  296. def pyParamsSetters: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  297. def pythonClass(): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  298. def rClass(): String
    Attributes
    protected
    Definition Classes
    RWrappable
  299. def rDocString: String
    Attributes
    protected
    Definition Classes
    RWrappable
  300. def rExtraBodyLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  301. def rExtraInitLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  302. lazy val rFuncName: String
    Attributes
    protected
    Definition Classes
    RWrappable
  303. lazy val rInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    RWrappable
  304. def rParamArg[T](p: Param[T]): String
    Attributes
    protected
    Definition Classes
    RWrappable
  305. def rParamsArgs: String
    Attributes
    protected
    Definition Classes
    RWrappable
  306. def rSetterLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  307. final val rawPredictionCol: Param[String]
    Definition Classes
    HasRawPredictionCol
  308. val repartitionByGroupingColumn: BooleanParam
    Definition Classes
    LightGBMExecutionParams
  309. def save(path: String): Unit
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  310. val seed: IntParam
    Definition Classes
    LightGBMSeedParams
  311. final def set(paramPair: ParamPair[_]): LightGBMClassifier.this.type
    Attributes
    protected
    Definition Classes
    Params
  312. final def set(param: String, value: Any): LightGBMClassifier.this.type
    Attributes
    protected
    Definition Classes
    Params
  313. final def set[T](param: Param[T], value: T): LightGBMClassifier.this.type
    Definition Classes
    Params
  314. def setBaggingFraction(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMFractionParams
  315. def setBaggingFreq(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  316. def setBaggingSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  317. def setBatchPerformanceMeasure(index: Int, measures: InstrumentationMeasures): Unit
    Attributes
    protected
    Definition Classes
    LightGBMPerformance
  318. def setBatchPerformanceMeasures(measures: Array[Option[InstrumentationMeasures]]): LightGBMClassifier.this.type
    Attributes
    protected
    Definition Classes
    LightGBMPerformance
  319. def setBinSampleCount(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMBinParams
  320. def setBoostFromAverage(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  321. def setBoostingType(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  322. def setCatSmooth(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMCategoricalParams
  323. def setCategoricalSlotIndexes(value: Array[Int]): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSlotParams
  324. def setCategoricalSlotNames(value: Array[String]): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSlotParams
  325. def setCatl2(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMCategoricalParams
  326. def setChunkSize(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  327. def setDataRandomSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  328. final def setDefault(paramPairs: ParamPair[_]*): LightGBMClassifier.this.type
    Attributes
    protected
    Definition Classes
    Params
  329. final def setDefault[T](param: Param[T], value: T): LightGBMClassifier.this.type
    Attributes
    protected
    Definition Classes
    Params
  330. def setDefaultListenPort(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  331. def setDelegate(delegate: LightGBMDelegate): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  332. def setDeterministic(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  333. def setDriverListenPort(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  334. def setDropRate(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDartParams
  335. def setDropSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  336. def setEarlyStoppingRound(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  337. def setExecutionMode(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  338. def setExtraSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  339. def setFObj(value: FObjTrait): LightGBMClassifier.this.type
    Definition Classes
    LightGBMObjectiveParams
  340. def setFeatureFraction(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMFractionParams
  341. def setFeatureFractionByNode(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMFractionParams
  342. def setFeatureFractionSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  343. def setFeaturesCol(value: String): LightGBMClassifier
    Definition Classes
    Predictor
  344. def setFeaturesShapCol(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMPredictionParams
  345. def setImprovementTolerance(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  346. def setInitScoreCol(value: String): LightGBMClassifier.this.type

    Definition Classes
    HasInitScoreCol
  347. def setIsEnableSparse(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDatasetParams
  348. def setIsProvideTrainingMetric(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  349. def setIsUnbalance(value: Boolean): LightGBMClassifier.this.type
  350. def setLabelCol(value: String): LightGBMClassifier
    Definition Classes
    Predictor
  351. def setLambdaL1(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  352. def setLambdaL2(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  353. def setLeafPredictionCol(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMPredictionParams
  354. def setLearningRate(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  355. def setMatrixType(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  356. def setMaxBin(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMBinParams
  357. def setMaxBinByFeature(value: Array[Int]): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  358. def setMaxCatThreshold(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMCategoricalParams
  359. def setMaxCatToOnehot(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMCategoricalParams
  360. def setMaxDeltaStep(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  361. def setMaxDepth(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  362. def setMaxDrop(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDartParams
  363. def setMetric(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  364. def setMicroBatchSize(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  365. def setMinDataInLeaf(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  366. def setMinDataPerBin(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  367. def setMinDataPerGroup(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMCategoricalParams
  368. def setMinGainToSplit(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  369. def setMinSumHessianInLeaf(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  370. def setModelString(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  371. def setMonotoneConstraints(value: Array[Int]): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  372. def setMonotoneConstraintsMethod(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  373. def setMonotonePenalty(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  374. def setNegBaggingFraction(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMFractionParams
  375. def setNumBatches(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  376. def setNumIterations(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  377. def setNumLeaves(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  378. def setNumTasks(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  379. def setNumThreads(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  380. def setObjective(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMObjectiveParams
  381. def setObjectiveSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  382. def setOtherRate(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  383. def setParallelism(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  384. def setPassThroughArgs(value: String): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  385. def setPosBaggingFraction(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMFractionParams
  386. def setPredictDisableShapeCheck(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMPredictionParams
  387. def setPredictionCol(value: String): LightGBMClassifier
    Definition Classes
    Predictor
  388. def setProbabilityCol(value: String): LightGBMClassifier
    Definition Classes
    ProbabilisticClassifier
  389. def setRawPredictionCol(value: String): LightGBMClassifier
    Definition Classes
    Classifier
  390. def setRepartitionByGroupingColumn(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  391. def setSeed(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSeedParams
  392. def setSkipDrop(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDartParams
  393. def setSlotNames(value: Array[String]): LightGBMClassifier.this.type
    Definition Classes
    LightGBMSlotParams
  394. def setThresholds(value: Array[Double]): LightGBMClassifier
    Definition Classes
    ProbabilisticClassifier
  395. def setTimeout(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  396. def setTopK(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  397. def setTopRate(value: Double): LightGBMClassifier.this.type
    Definition Classes
    LightGBMLearnerParams
  398. def setUniformDrop(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDartParams
  399. def setUseBarrierExecutionMode(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  400. def setUseMissing(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDatasetParams
  401. def setUseSingleDatasetMode(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMExecutionParams
  402. def setValidationIndicatorCol(value: String): LightGBMClassifier.this.type

    Definition Classes
    HasValidationIndicatorCol
  403. def setVerbosity(value: Int): LightGBMClassifier.this.type
    Definition Classes
    LightGBMParams
  404. def setWeightCol(value: String): LightGBMClassifier.this.type

    Definition Classes
    HasWeightCol
  405. def setXGBoostDartMode(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDartParams
  406. def setZeroAsMissing(value: Boolean): LightGBMClassifier.this.type
    Definition Classes
    LightGBMDatasetParams
  407. val skipDrop: DoubleParam
    Definition Classes
    LightGBMDartParams
  408. val slotNames: StringArrayParam
    Definition Classes
    LightGBMSlotParams
  409. def stringFromTrainedModel(model: LightGBMClassificationModel): String
    Definition Classes
    LightGBMClassifierLightGBMBase
  410. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  411. val thisStage: Params
    Attributes
    protected
    Definition Classes
    BaseWrappable
  412. val thresholds: DoubleArrayParam
    Definition Classes
    HasThresholds
  413. val timeout: DoubleParam
    Definition Classes
    LightGBMExecutionParams
  414. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  415. val topK: IntParam
    Definition Classes
    LightGBMExecutionParams
  416. val topRate: DoubleParam
    Definition Classes
    LightGBMLearnerParams
  417. def train(dataset: Dataset[_]): LightGBMClassificationModel

    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
  418. def trainOneDataBatch(dataset: Dataset[_], batchIndex: Int, batchCount: Int): LightGBMClassificationModel

    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
  419. def transformSchema(schema: StructType): StructType
    Definition Classes
    Predictor → PipelineStage
  420. def transformSchema(schema: StructType, logging: Boolean): StructType
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  421. val uid: String
    Definition Classes
    LightGBMClassifierBasicLogging → Identifiable
  422. val uniformDrop: BooleanParam
    Definition Classes
    LightGBMDartParams
  423. val useBarrierExecutionMode: BooleanParam
    Definition Classes
    LightGBMExecutionParams
  424. val useMissing: BooleanParam
    Definition Classes
    LightGBMDatasetParams
  425. val useSingleDatasetMode: BooleanParam
    Definition Classes
    LightGBMExecutionParams
  426. def validateAndTransformSchema(schema: StructType, fitting: Boolean, featuresDataType: DataType): StructType
    Attributes
    protected
    Definition Classes
    ProbabilisticClassifierParams → ClassifierParams → PredictorParams
  427. def validateLabel(label: Double, numClasses: Int): Unit
    Attributes
    protected
    Definition Classes
    Classifier
  428. def validateNumClasses(numClasses: Int): Unit
    Attributes
    protected
    Definition Classes
    Classifier
  429. val validationIndicatorCol: Param[String]

    The name of the validation indicator column

    The name of the validation indicator column

    Definition Classes
    HasValidationIndicatorCol
  430. val ver: String
    Definition Classes
    BasicLogging
  431. val verbosity: IntParam
    Definition Classes
    LightGBMParams
  432. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  433. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  434. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  435. val weightCol: Param[String]

    The name of the weight column

    The name of the weight column

    Definition Classes
    HasWeightCol
  436. def write: MLWriter
    Definition Classes
    DefaultParamsWritable → MLWritable
  437. val xGBoostDartMode: BooleanParam
    Definition Classes
    LightGBMDartParams
  438. val zeroAsMissing: BooleanParam
    Definition Classes
    LightGBMDatasetParams

Inherited from BasicLogging

Inherited from LightGBMPerformance

Inherited from LightGBMParams

Inherited from LightGBMCategoricalParams

Inherited from LightGBMSeedParams

Inherited from LightGBMObjectiveParams

Inherited from LightGBMPredictionParams

Inherited from LightGBMDartParams

Inherited from LightGBMDatasetParams

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 DotnetWrappable

Inherited from RWrappable

Inherited from PythonWrappable

Inherited from BaseWrappable

Inherited from ProbabilisticClassifier[Vector, LightGBMClassifier, LightGBMClassificationModel]

Inherited from ProbabilisticClassifierParams

Inherited from HasThresholds

Inherited from HasProbabilityCol

Inherited from Classifier[Vector, LightGBMClassifier, LightGBMClassificationModel]

Inherited from ClassifierParams

Inherited from HasRawPredictionCol

Inherited from Predictor[Vector, LightGBMClassifier, LightGBMClassificationModel]

Inherited from PredictorParams

Inherited from HasPredictionCol

Inherited from HasFeaturesCol

Inherited from HasLabelCol

Inherited from Estimator[LightGBMClassificationModel]

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