Synapseml  0.10.0
Public Member Functions | Static Public Member Functions | List of all members
Synapse.ML.Lightgbm.LightGBMClassifier Class Reference

LightGBMClassifier implements LightGBMClassifier More...

Inheritance diagram for Synapse.ML.Lightgbm.LightGBMClassifier:
Inheritance graph
[legend]
Collaboration diagram for Synapse.ML.Lightgbm.LightGBMClassifier:
Collaboration graph
[legend]

Public Member Functions

 LightGBMClassifier ()
 Creates a LightGBMClassifier without any parameters. More...
 
 LightGBMClassifier (string uid)
 Creates a LightGBMClassifier with a UID that is used to give the LightGBMClassifier a unique ID. More...
 
LightGBMClassifier SetBaggingFraction (double value)
 Sets value for baggingFraction More...
 
LightGBMClassifier SetBaggingFreq (int value)
 Sets value for baggingFreq More...
 
LightGBMClassifier SetBaggingSeed (int value)
 Sets value for baggingSeed More...
 
LightGBMClassifier SetBinSampleCount (int value)
 Sets value for binSampleCount More...
 
LightGBMClassifier SetBoostFromAverage (bool value)
 Sets value for boostFromAverage More...
 
LightGBMClassifier SetBoostingType (string value)
 Sets value for boostingType More...
 
LightGBMClassifier SetCatSmooth (double value)
 Sets value for catSmooth More...
 
LightGBMClassifier SetCategoricalSlotIndexes (int[] value)
 Sets value for categoricalSlotIndexes More...
 
LightGBMClassifier SetCategoricalSlotNames (string[] value)
 Sets value for categoricalSlotNames More...
 
LightGBMClassifier SetCatl2 (double value)
 Sets value for catl2 More...
 
LightGBMClassifier SetChunkSize (int value)
 Sets value for chunkSize More...
 
LightGBMClassifier SetDataRandomSeed (int value)
 Sets value for dataRandomSeed More...
 
LightGBMClassifier SetDefaultListenPort (int value)
 Sets value for defaultListenPort More...
 
LightGBMClassifier SetDeterministic (bool value)
 Sets value for deterministic More...
 
LightGBMClassifier SetDriverListenPort (int value)
 Sets value for driverListenPort More...
 
LightGBMClassifier SetDropRate (double value)
 Sets value for dropRate More...
 
LightGBMClassifier SetDropSeed (int value)
 Sets value for dropSeed More...
 
LightGBMClassifier SetEarlyStoppingRound (int value)
 Sets value for earlyStoppingRound More...
 
LightGBMClassifier SetExecutionMode (string value)
 Sets value for executionMode More...
 
LightGBMClassifier SetExtraSeed (int value)
 Sets value for extraSeed More...
 
LightGBMClassifier SetFeatureFraction (double value)
 Sets value for featureFraction More...
 
LightGBMClassifier SetFeatureFractionByNode (double value)
 Sets value for featureFractionByNode More...
 
LightGBMClassifier SetFeatureFractionSeed (int value)
 Sets value for featureFractionSeed More...
 
LightGBMClassifier SetFeaturesCol (string value)
 Sets value for featuresCol More...
 
LightGBMClassifier SetFeaturesShapCol (string value)
 Sets value for featuresShapCol More...
 
LightGBMClassifier SetFobj (object value)
 Sets value for fobj More...
 
LightGBMClassifier SetImprovementTolerance (double value)
 Sets value for improvementTolerance More...
 
LightGBMClassifier SetInitScoreCol (string value)
 Sets value for initScoreCol More...
 
LightGBMClassifier SetIsEnableSparse (bool value)
 Sets value for isEnableSparse More...
 
LightGBMClassifier SetIsProvideTrainingMetric (bool value)
 Sets value for isProvideTrainingMetric More...
 
LightGBMClassifier SetIsUnbalance (bool value)
 Sets value for isUnbalance More...
 
LightGBMClassifier SetLabelCol (string value)
 Sets value for labelCol More...
 
LightGBMClassifier SetLambdaL1 (double value)
 Sets value for lambdaL1 More...
 
LightGBMClassifier SetLambdaL2 (double value)
 Sets value for lambdaL2 More...
 
LightGBMClassifier SetLeafPredictionCol (string value)
 Sets value for leafPredictionCol More...
 
LightGBMClassifier SetLearningRate (double value)
 Sets value for learningRate More...
 
LightGBMClassifier SetMatrixType (string value)
 Sets value for matrixType More...
 
LightGBMClassifier SetMaxBin (int value)
 Sets value for maxBin More...
 
LightGBMClassifier SetMaxBinByFeature (int[] value)
 Sets value for maxBinByFeature More...
 
LightGBMClassifier SetMaxCatThreshold (int value)
 Sets value for maxCatThreshold More...
 
LightGBMClassifier SetMaxCatToOnehot (int value)
 Sets value for maxCatToOnehot More...
 
LightGBMClassifier SetMaxDeltaStep (double value)
 Sets value for maxDeltaStep More...
 
LightGBMClassifier SetMaxDepth (int value)
 Sets value for maxDepth More...
 
LightGBMClassifier SetMaxDrop (int value)
 Sets value for maxDrop More...
 
LightGBMClassifier SetMetric (string value)
 Sets value for metric More...
 
LightGBMClassifier SetMicroBatchSize (int value)
 Sets value for microBatchSize More...
 
LightGBMClassifier SetMinDataInLeaf (int value)
 Sets value for minDataInLeaf More...
 
LightGBMClassifier SetMinDataPerBin (int value)
 Sets value for minDataPerBin More...
 
LightGBMClassifier SetMinDataPerGroup (int value)
 Sets value for minDataPerGroup More...
 
LightGBMClassifier SetMinGainToSplit (double value)
 Sets value for minGainToSplit More...
 
LightGBMClassifier SetMinSumHessianInLeaf (double value)
 Sets value for minSumHessianInLeaf More...
 
LightGBMClassifier SetModelString (string value)
 Sets value for modelString More...
 
LightGBMClassifier SetMonotoneConstraints (int[] value)
 Sets value for monotoneConstraints More...
 
LightGBMClassifier SetMonotoneConstraintsMethod (string value)
 Sets value for monotoneConstraintsMethod More...
 
LightGBMClassifier SetMonotonePenalty (double value)
 Sets value for monotonePenalty More...
 
LightGBMClassifier SetNegBaggingFraction (double value)
 Sets value for negBaggingFraction More...
 
LightGBMClassifier SetNumBatches (int value)
 Sets value for numBatches More...
 
LightGBMClassifier SetNumIterations (int value)
 Sets value for numIterations More...
 
LightGBMClassifier SetNumLeaves (int value)
 Sets value for numLeaves More...
 
LightGBMClassifier SetNumTasks (int value)
 Sets value for numTasks More...
 
LightGBMClassifier SetNumThreads (int value)
 Sets value for numThreads More...
 
LightGBMClassifier SetObjective (string value)
 Sets value for objective More...
 
LightGBMClassifier SetObjectiveSeed (int value)
 Sets value for objectiveSeed More...
 
LightGBMClassifier SetOtherRate (double value)
 Sets value for otherRate More...
 
LightGBMClassifier SetParallelism (string value)
 Sets value for parallelism More...
 
LightGBMClassifier SetPassThroughArgs (string value)
 Sets value for passThroughArgs More...
 
LightGBMClassifier SetPosBaggingFraction (double value)
 Sets value for posBaggingFraction More...
 
LightGBMClassifier SetPredictDisableShapeCheck (bool value)
 Sets value for predictDisableShapeCheck More...
 
LightGBMClassifier SetPredictionCol (string value)
 Sets value for predictionCol More...
 
LightGBMClassifier SetProbabilityCol (string value)
 Sets value for probabilityCol More...
 
LightGBMClassifier SetRawPredictionCol (string value)
 Sets value for rawPredictionCol More...
 
LightGBMClassifier SetRepartitionByGroupingColumn (bool value)
 Sets value for repartitionByGroupingColumn More...
 
LightGBMClassifier SetSeed (int value)
 Sets value for seed More...
 
LightGBMClassifier SetSkipDrop (double value)
 Sets value for skipDrop More...
 
LightGBMClassifier SetSlotNames (string[] value)
 Sets value for slotNames More...
 
LightGBMClassifier SetThresholds (double[] value)
 Sets value for thresholds More...
 
LightGBMClassifier SetTimeout (double value)
 Sets value for timeout More...
 
LightGBMClassifier SetTopK (int value)
 Sets value for topK More...
 
LightGBMClassifier SetTopRate (double value)
 Sets value for topRate More...
 
LightGBMClassifier SetUniformDrop (bool value)
 Sets value for uniformDrop More...
 
LightGBMClassifier SetUseBarrierExecutionMode (bool value)
 Sets value for useBarrierExecutionMode More...
 
LightGBMClassifier SetUseMissing (bool value)
 Sets value for useMissing More...
 
LightGBMClassifier SetUseSingleDatasetMode (bool value)
 Sets value for useSingleDatasetMode More...
 
LightGBMClassifier SetValidationIndicatorCol (string value)
 Sets value for validationIndicatorCol More...
 
LightGBMClassifier SetVerbosity (int value)
 Sets value for verbosity More...
 
LightGBMClassifier SetWeightCol (string value)
 Sets value for weightCol More...
 
LightGBMClassifier SetXGBoostDartMode (bool value)
 Sets value for xGBoostDartMode More...
 
LightGBMClassifier SetZeroAsMissing (bool value)
 Sets value for zeroAsMissing More...
 
double GetBaggingFraction ()
 Gets baggingFraction value More...
 
int GetBaggingFreq ()
 Gets baggingFreq value More...
 
int GetBaggingSeed ()
 Gets baggingSeed value More...
 
int GetBinSampleCount ()
 Gets binSampleCount value More...
 
bool GetBoostFromAverage ()
 Gets boostFromAverage value More...
 
string GetBoostingType ()
 Gets boostingType value More...
 
double GetCatSmooth ()
 Gets catSmooth value More...
 
int [] GetCategoricalSlotIndexes ()
 Gets categoricalSlotIndexes value More...
 
string [] GetCategoricalSlotNames ()
 Gets categoricalSlotNames value More...
 
double GetCatl2 ()
 Gets catl2 value More...
 
int GetChunkSize ()
 Gets chunkSize value More...
 
int GetDataRandomSeed ()
 Gets dataRandomSeed value More...
 
int GetDefaultListenPort ()
 Gets defaultListenPort value More...
 
bool GetDeterministic ()
 Gets deterministic value More...
 
int GetDriverListenPort ()
 Gets driverListenPort value More...
 
double GetDropRate ()
 Gets dropRate value More...
 
int GetDropSeed ()
 Gets dropSeed value More...
 
int GetEarlyStoppingRound ()
 Gets earlyStoppingRound value More...
 
string GetExecutionMode ()
 Gets executionMode value More...
 
int GetExtraSeed ()
 Gets extraSeed value More...
 
double GetFeatureFraction ()
 Gets featureFraction value More...
 
double GetFeatureFractionByNode ()
 Gets featureFractionByNode value More...
 
int GetFeatureFractionSeed ()
 Gets featureFractionSeed value More...
 
string GetFeaturesCol ()
 Gets featuresCol value More...
 
string GetFeaturesShapCol ()
 Gets featuresShapCol value More...
 
object GetFobj ()
 Gets fobj value More...
 
double GetImprovementTolerance ()
 Gets improvementTolerance value More...
 
string GetInitScoreCol ()
 Gets initScoreCol value More...
 
bool GetIsEnableSparse ()
 Gets isEnableSparse value More...
 
bool GetIsProvideTrainingMetric ()
 Gets isProvideTrainingMetric value More...
 
bool GetIsUnbalance ()
 Gets isUnbalance value More...
 
string GetLabelCol ()
 Gets labelCol value More...
 
double GetLambdaL1 ()
 Gets lambdaL1 value More...
 
double GetLambdaL2 ()
 Gets lambdaL2 value More...
 
string GetLeafPredictionCol ()
 Gets leafPredictionCol value More...
 
double GetLearningRate ()
 Gets learningRate value More...
 
string GetMatrixType ()
 Gets matrixType value More...
 
int GetMaxBin ()
 Gets maxBin value More...
 
int [] GetMaxBinByFeature ()
 Gets maxBinByFeature value More...
 
int GetMaxCatThreshold ()
 Gets maxCatThreshold value More...
 
int GetMaxCatToOnehot ()
 Gets maxCatToOnehot value More...
 
double GetMaxDeltaStep ()
 Gets maxDeltaStep value More...
 
int GetMaxDepth ()
 Gets maxDepth value More...
 
int GetMaxDrop ()
 Gets maxDrop value More...
 
string GetMetric ()
 Gets metric value More...
 
int GetMicroBatchSize ()
 Gets microBatchSize value More...
 
int GetMinDataInLeaf ()
 Gets minDataInLeaf value More...
 
int GetMinDataPerBin ()
 Gets minDataPerBin value More...
 
int GetMinDataPerGroup ()
 Gets minDataPerGroup value More...
 
double GetMinGainToSplit ()
 Gets minGainToSplit value More...
 
double GetMinSumHessianInLeaf ()
 Gets minSumHessianInLeaf value More...
 
string GetModelString ()
 Gets modelString value More...
 
int [] GetMonotoneConstraints ()
 Gets monotoneConstraints value More...
 
string GetMonotoneConstraintsMethod ()
 Gets monotoneConstraintsMethod value More...
 
double GetMonotonePenalty ()
 Gets monotonePenalty value More...
 
double GetNegBaggingFraction ()
 Gets negBaggingFraction value More...
 
int GetNumBatches ()
 Gets numBatches value More...
 
int GetNumIterations ()
 Gets numIterations value More...
 
int GetNumLeaves ()
 Gets numLeaves value More...
 
int GetNumTasks ()
 Gets numTasks value More...
 
int GetNumThreads ()
 Gets numThreads value More...
 
string GetObjective ()
 Gets objective value More...
 
int GetObjectiveSeed ()
 Gets objectiveSeed value More...
 
double GetOtherRate ()
 Gets otherRate value More...
 
string GetParallelism ()
 Gets parallelism value More...
 
string GetPassThroughArgs ()
 Gets passThroughArgs value More...
 
double GetPosBaggingFraction ()
 Gets posBaggingFraction value More...
 
bool GetPredictDisableShapeCheck ()
 Gets predictDisableShapeCheck value More...
 
string GetPredictionCol ()
 Gets predictionCol value More...
 
string GetProbabilityCol ()
 Gets probabilityCol value More...
 
string GetRawPredictionCol ()
 Gets rawPredictionCol value More...
 
bool GetRepartitionByGroupingColumn ()
 Gets repartitionByGroupingColumn value More...
 
int GetSeed ()
 Gets seed value More...
 
double GetSkipDrop ()
 Gets skipDrop value More...
 
string [] GetSlotNames ()
 Gets slotNames value More...
 
double [] GetThresholds ()
 Gets thresholds value More...
 
double GetTimeout ()
 Gets timeout value More...
 
int GetTopK ()
 Gets topK value More...
 
double GetTopRate ()
 Gets topRate value More...
 
bool GetUniformDrop ()
 Gets uniformDrop value More...
 
bool GetUseBarrierExecutionMode ()
 Gets useBarrierExecutionMode value More...
 
bool GetUseMissing ()
 Gets useMissing value More...
 
bool GetUseSingleDatasetMode ()
 Gets useSingleDatasetMode value More...
 
string GetValidationIndicatorCol ()
 Gets validationIndicatorCol value More...
 
int GetVerbosity ()
 Gets verbosity value More...
 
string GetWeightCol ()
 Gets weightCol value More...
 
bool GetXGBoostDartMode ()
 Gets xGBoostDartMode value More...
 
bool GetZeroAsMissing ()
 Gets zeroAsMissing value More...
 
override LightGBMClassificationModel Fit (DataFrame dataset)
 Fits a model to the input data. More...
 
void Save (string path)
 Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala. More...
 
JavaMLWriter Write ()
 
Returns
a JavaMLWriter instance for this ML instance.

 
JavaMLReader< LightGBMClassifierRead ()
 Get the corresponding JavaMLReader instance. More...
 

Static Public Member Functions

static LightGBMClassifier Load (string path)
 Loads the LightGBMClassifier that was previously saved using Save(string). More...
 

Detailed Description

LightGBMClassifier implements LightGBMClassifier

Constructor & Destructor Documentation

◆ LightGBMClassifier() [1/2]

Synapse.ML.Lightgbm.LightGBMClassifier.LightGBMClassifier ( )
inline

Creates a LightGBMClassifier without any parameters.

◆ LightGBMClassifier() [2/2]

Synapse.ML.Lightgbm.LightGBMClassifier.LightGBMClassifier ( string  uid)
inline

Creates a LightGBMClassifier with a UID that is used to give the LightGBMClassifier a unique ID.

Parameters
uidAn immutable unique ID for the object and its derivatives.

Member Function Documentation

◆ Fit()

override LightGBMClassificationModel Synapse.ML.Lightgbm.LightGBMClassifier.Fit ( DataFrame  dataset)

Fits a model to the input data.

Parameters
datasetThe DataFrame to fit the model to.
Returns
LightGBMClassificationModel

◆ GetBaggingFraction()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetBaggingFraction ( )

Gets baggingFraction value

Returns
baggingFraction: Bagging fraction

◆ GetBaggingFreq()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetBaggingFreq ( )

Gets baggingFreq value

Returns
baggingFreq: Bagging frequency

◆ GetBaggingSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetBaggingSeed ( )

Gets baggingSeed value

Returns
baggingSeed: Bagging seed

◆ GetBinSampleCount()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetBinSampleCount ( )

Gets binSampleCount value

Returns
binSampleCount: Number of samples considered at computing histogram bins

◆ GetBoostFromAverage()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetBoostFromAverage ( )

Gets boostFromAverage value

Returns
boostFromAverage: Adjusts initial score to the mean of labels for faster convergence

◆ GetBoostingType()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetBoostingType ( )

Gets boostingType value

Returns
boostingType: Default gbdt = traditional Gradient Boosting Decision Tree. Options are: gbdt, gbrt, rf (Random Forest), random_forest, dart (Dropouts meet Multiple Additive Regression Trees), goss (Gradient-based One-Side Sampling).

◆ GetCategoricalSlotIndexes()

int [] Synapse.ML.Lightgbm.LightGBMClassifier.GetCategoricalSlotIndexes ( )

Gets categoricalSlotIndexes value

Returns
categoricalSlotIndexes: List of categorical column indexes, the slot index in the features column

◆ GetCategoricalSlotNames()

string [] Synapse.ML.Lightgbm.LightGBMClassifier.GetCategoricalSlotNames ( )

Gets categoricalSlotNames value

Returns
categoricalSlotNames: List of categorical column slot names, the slot name in the features column

◆ GetCatl2()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetCatl2 ( )

Gets catl2 value

Returns
catl2: L2 regularization in categorical split

◆ GetCatSmooth()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetCatSmooth ( )

Gets catSmooth value

Returns
catSmooth: this can reduce the effect of noises in categorical features, especially for categories with few data

◆ GetChunkSize()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetChunkSize ( )

Gets chunkSize value

Returns
chunkSize: Advanced parameter to specify the chunk size for copying Java data to native. If set too high, memory may be wasted, but if set too low, performance may be reduced during data copy.If dataset size is known beforehand, set to the number of rows in the dataset.

◆ GetDataRandomSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetDataRandomSeed ( )

Gets dataRandomSeed value

Returns
dataRandomSeed: Random seed for sampling data to construct histogram bins.

◆ GetDefaultListenPort()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetDefaultListenPort ( )

Gets defaultListenPort value

Returns
defaultListenPort: The default listen port on executors, used for testing

◆ GetDeterministic()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetDeterministic ( )

Gets deterministic value

Returns
deterministic: Used only with cpu devide type. Setting this to true should ensure stable results when using the same data and the same parameters. Note: setting this to true may slow down training. To avoid potential instability due to numerical issues, please set force_col_wise=true or force_row_wise=true when setting deterministic=true

◆ GetDriverListenPort()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetDriverListenPort ( )

Gets driverListenPort value

Returns
driverListenPort: The listen port on a driver. Default value is 0 (random)

◆ GetDropRate()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetDropRate ( )

Gets dropRate value

Returns
dropRate: Dropout rate: a fraction of previous trees to drop during the dropout

◆ GetDropSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetDropSeed ( )

Gets dropSeed value

Returns
dropSeed: Random seed to choose dropping models. Only used in dart.

◆ GetEarlyStoppingRound()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetEarlyStoppingRound ( )

Gets earlyStoppingRound value

Returns
earlyStoppingRound: Early stopping round

◆ GetExecutionMode()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetExecutionMode ( )

Gets executionMode value

Returns
executionMode: Specify how LightGBM is executed. Values can be streaming, bulk. Default is bulk.

◆ GetExtraSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetExtraSeed ( )

Gets extraSeed value

Returns
extraSeed: Random seed for selecting threshold when extra_trees is true

◆ GetFeatureFraction()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetFeatureFraction ( )

Gets featureFraction value

Returns
featureFraction: Feature fraction

◆ GetFeatureFractionByNode()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetFeatureFractionByNode ( )

Gets featureFractionByNode value

Returns
featureFractionByNode: Feature fraction by node

◆ GetFeatureFractionSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetFeatureFractionSeed ( )

Gets featureFractionSeed value

Returns
featureFractionSeed: Feature fraction seed

◆ GetFeaturesCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetFeaturesCol ( )

Gets featuresCol value

Returns
featuresCol: features column name

◆ GetFeaturesShapCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetFeaturesShapCol ( )

Gets featuresShapCol value

Returns
featuresShapCol: Output SHAP vector column name after prediction containing the feature contribution values

◆ GetFobj()

object Synapse.ML.Lightgbm.LightGBMClassifier.GetFobj ( )

Gets fobj value

Returns
fobj: Customized objective function. Should accept two parameters: preds, train_data, and return (grad, hess).

◆ GetImprovementTolerance()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetImprovementTolerance ( )

Gets improvementTolerance value

Returns
improvementTolerance: Tolerance to consider improvement in metric

◆ GetInitScoreCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetInitScoreCol ( )

Gets initScoreCol value

Returns
initScoreCol: The name of the initial score column, used for continued training

◆ GetIsEnableSparse()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetIsEnableSparse ( )

Gets isEnableSparse value

Returns
isEnableSparse: Used to enable/disable sparse optimization

◆ GetIsProvideTrainingMetric()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetIsProvideTrainingMetric ( )

Gets isProvideTrainingMetric value

Returns
isProvideTrainingMetric: Whether output metric result over training dataset.

◆ GetIsUnbalance()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetIsUnbalance ( )

Gets isUnbalance value

Returns
isUnbalance: Set to true if training data is unbalanced in binary classification scenario

◆ GetLabelCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetLabelCol ( )

Gets labelCol value

Returns
labelCol: label column name

◆ GetLambdaL1()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetLambdaL1 ( )

Gets lambdaL1 value

Returns
lambdaL1: L1 regularization

◆ GetLambdaL2()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetLambdaL2 ( )

Gets lambdaL2 value

Returns
lambdaL2: L2 regularization

◆ GetLeafPredictionCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetLeafPredictionCol ( )

Gets leafPredictionCol value

Returns
leafPredictionCol: Predicted leaf indices's column name

◆ GetLearningRate()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetLearningRate ( )

Gets learningRate value

Returns
learningRate: Learning rate or shrinkage rate

◆ GetMatrixType()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetMatrixType ( )

Gets matrixType value

Returns
matrixType: Advanced parameter to specify whether the native lightgbm matrix constructed should be sparse or dense. Values can be auto, sparse or dense. Default value is auto, which samples first ten rows to determine type.

◆ GetMaxBin()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxBin ( )

Gets maxBin value

Returns
maxBin: Max bin

◆ GetMaxBinByFeature()

int [] Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxBinByFeature ( )

Gets maxBinByFeature value

Returns
maxBinByFeature: Max number of bins for each feature

◆ GetMaxCatThreshold()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxCatThreshold ( )

Gets maxCatThreshold value

Returns
maxCatThreshold: limit number of split points considered for categorical features

◆ GetMaxCatToOnehot()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxCatToOnehot ( )

Gets maxCatToOnehot value

Returns
maxCatToOnehot: when number of categories of one feature smaller than or equal to this, one-vs-other split algorithm will be used

◆ GetMaxDeltaStep()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxDeltaStep ( )

Gets maxDeltaStep value

Returns
maxDeltaStep: Used to limit the max output of tree leaves

◆ GetMaxDepth()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxDepth ( )

Gets maxDepth value

Returns
maxDepth: Max depth

◆ GetMaxDrop()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMaxDrop ( )

Gets maxDrop value

Returns
maxDrop: Max number of dropped trees during one boosting iteration

◆ GetMetric()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetMetric ( )

Gets metric value

Returns
metric: Metrics to be evaluated on the evaluation data. Options are: empty string or not specified means that metric corresponding to specified objective will be used (this is possible only for pre-defined objective functions, otherwise no evaluation metric will be added). None (string, not a None value) means that no metric will be registered, aliases: na, null, custom. l1, absolute loss, aliases: mean_absolute_error, mae, regression_l1. l2, square loss, aliases: mean_squared_error, mse, regression_l2, regression. rmse, root square loss, aliases: root_mean_squared_error, l2_root. quantile, Quantile regression. mape, MAPE loss, aliases: mean_absolute_percentage_error. huber, Huber loss. fair, Fair loss. poisson, negative log-likelihood for Poisson regression. gamma, negative log-likelihood for Gamma regression. gamma_deviance, residual deviance for Gamma regression. tweedie, negative log-likelihood for Tweedie regression. ndcg, NDCG, aliases: lambdarank. map, MAP, aliases: mean_average_precision. auc, AUC. binary_logloss, log loss, aliases: binary. binary_error, for one sample: 0 for correct classification, 1 for error classification. multi_logloss, log loss for multi-class classification, aliases: multiclass, softmax, multiclassova, multiclass_ova, ova, ovr. multi_error, error rate for multi-class classification. cross_entropy, cross-entropy (with optional linear weights), aliases: xentropy. cross_entropy_lambda, intensity-weighted cross-entropy, aliases: xentlambda. kullback_leibler, Kullback-Leibler divergence, aliases: kldiv.

◆ GetMicroBatchSize()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMicroBatchSize ( )

Gets microBatchSize value

Returns
microBatchSize: Specify how many elements are sent in a streaming micro-batch.

◆ GetMinDataInLeaf()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMinDataInLeaf ( )

Gets minDataInLeaf value

Returns
minDataInLeaf: Minimal number of data in one leaf. Can be used to deal with over-fitting.

◆ GetMinDataPerBin()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMinDataPerBin ( )

Gets minDataPerBin value

Returns
minDataPerBin: Minimal number of data inside one bin

◆ GetMinDataPerGroup()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetMinDataPerGroup ( )

Gets minDataPerGroup value

Returns
minDataPerGroup: minimal number of data per categorical group

◆ GetMinGainToSplit()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetMinGainToSplit ( )

Gets minGainToSplit value

Returns
minGainToSplit: The minimal gain to perform split

◆ GetMinSumHessianInLeaf()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetMinSumHessianInLeaf ( )

Gets minSumHessianInLeaf value

Returns
minSumHessianInLeaf: Minimal sum hessian in one leaf

◆ GetModelString()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetModelString ( )

Gets modelString value

Returns
modelString: LightGBM model to retrain

◆ GetMonotoneConstraints()

int [] Synapse.ML.Lightgbm.LightGBMClassifier.GetMonotoneConstraints ( )

Gets monotoneConstraints value

Returns
monotoneConstraints: used for constraints of monotonic features. 1 means increasing, -1 means decreasing, 0 means non-constraint. Specify all features in order.

◆ GetMonotoneConstraintsMethod()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetMonotoneConstraintsMethod ( )

Gets monotoneConstraintsMethod value

Returns
monotoneConstraintsMethod: Monotone constraints method. basic, intermediate, or advanced.

◆ GetMonotonePenalty()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetMonotonePenalty ( )

Gets monotonePenalty value

Returns
monotonePenalty: A penalization parameter X forbids any monotone splits on the first X (rounded down) level(s) of the tree.

◆ GetNegBaggingFraction()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetNegBaggingFraction ( )

Gets negBaggingFraction value

Returns
negBaggingFraction: Negative Bagging fraction

◆ GetNumBatches()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetNumBatches ( )

Gets numBatches value

Returns
numBatches: If greater than 0, splits data into separate batches during training

◆ GetNumIterations()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetNumIterations ( )

Gets numIterations value

Returns
numIterations: Number of iterations, LightGBM constructs num_class * num_iterations trees

◆ GetNumLeaves()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetNumLeaves ( )

Gets numLeaves value

Returns
numLeaves: Number of leaves

◆ GetNumTasks()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetNumTasks ( )

Gets numTasks value

Returns
numTasks: Advanced parameter to specify the number of tasks. SynapseML tries to guess this based on cluster configuration, but this parameter can be used to override.

◆ GetNumThreads()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetNumThreads ( )

Gets numThreads value

Returns
numThreads: Number of threads per executor for LightGBM. For the best speed, set this to the number of real CPU cores.

◆ GetObjective()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetObjective ( )

Gets objective value

Returns
objective: The Objective. For regression applications, this can be: regression_l2, regression_l1, huber, fair, poisson, quantile, mape, gamma or tweedie. For classification applications, this can be: binary, multiclass, or multiclassova.

◆ GetObjectiveSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetObjectiveSeed ( )

Gets objectiveSeed value

Returns
objectiveSeed: Random seed for objectives, if random process is needed. Currently used only for rank_xendcg objective.

◆ GetOtherRate()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetOtherRate ( )

Gets otherRate value

Returns
otherRate: The retain ratio of small gradient data. Only used in goss.

◆ GetParallelism()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetParallelism ( )

Gets parallelism value

Returns
parallelism: Tree learner parallelism, can be set to data_parallel or voting_parallel

◆ GetPassThroughArgs()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetPassThroughArgs ( )

Gets passThroughArgs value

Returns
passThroughArgs: Direct string to pass through to LightGBM library (appended with other explicitly set params). Will override any parameters given with explicit setters. Can include multiple parameters in one string.

◆ GetPosBaggingFraction()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetPosBaggingFraction ( )

Gets posBaggingFraction value

Returns
posBaggingFraction: Positive Bagging fraction

◆ GetPredictDisableShapeCheck()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetPredictDisableShapeCheck ( )

Gets predictDisableShapeCheck value

Returns
predictDisableShapeCheck: control whether or not LightGBM raises an error when you try to predict on data with a different number of features than the training data

◆ GetPredictionCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetPredictionCol ( )

Gets predictionCol value

Returns
predictionCol: prediction column name

◆ GetProbabilityCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetProbabilityCol ( )

Gets probabilityCol value

Returns
probabilityCol: Column name for predicted class conditional probabilities. Note: Not all models output well-calibrated probability estimates! These probabilities should be treated as confidences, not precise probabilities

◆ GetRawPredictionCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetRawPredictionCol ( )

Gets rawPredictionCol value

Returns
rawPredictionCol: raw prediction (a.k.a. confidence) column name

◆ GetRepartitionByGroupingColumn()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetRepartitionByGroupingColumn ( )

Gets repartitionByGroupingColumn value

Returns
repartitionByGroupingColumn: Repartition training data according to grouping column, on by default.

◆ GetSeed()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetSeed ( )

Gets seed value

Returns
seed: Main seed, used to generate other seeds

◆ GetSkipDrop()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetSkipDrop ( )

Gets skipDrop value

Returns
skipDrop: Probability of skipping the dropout procedure during a boosting iteration

◆ GetSlotNames()

string [] Synapse.ML.Lightgbm.LightGBMClassifier.GetSlotNames ( )

Gets slotNames value

Returns
slotNames: List of slot names in the features column

◆ GetThresholds()

double [] Synapse.ML.Lightgbm.LightGBMClassifier.GetThresholds ( )

Gets thresholds value

Returns
thresholds: Thresholds in multi-class classification to adjust the probability of predicting each class. Array must have length equal to the number of classes, with values > 0 excepting that at most one value may be 0. The class with largest value p/t is predicted, where p is the original probability of that class and t is the class's threshold

◆ GetTimeout()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetTimeout ( )

Gets timeout value

Returns
timeout: Timeout in seconds

◆ GetTopK()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetTopK ( )

Gets topK value

Returns
topK: The top_k value used in Voting parallel, set this to larger value for more accurate result, but it will slow down the training speed. It should be greater than 0

◆ GetTopRate()

double Synapse.ML.Lightgbm.LightGBMClassifier.GetTopRate ( )

Gets topRate value

Returns
topRate: The retain ratio of large gradient data. Only used in goss.

◆ GetUniformDrop()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetUniformDrop ( )

Gets uniformDrop value

Returns
uniformDrop: Set this to true to use uniform drop in dart mode

◆ GetUseBarrierExecutionMode()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetUseBarrierExecutionMode ( )

Gets useBarrierExecutionMode value

Returns
useBarrierExecutionMode: Barrier execution mode which uses a barrier stage, off by default.

◆ GetUseMissing()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetUseMissing ( )

Gets useMissing value

Returns
useMissing: Set this to false to disable the special handle of missing value

◆ GetUseSingleDatasetMode()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetUseSingleDatasetMode ( )

Gets useSingleDatasetMode value

Returns
useSingleDatasetMode: Use single dataset execution mode to create a single native dataset per executor (singleton) to reduce memory and communication overhead.

◆ GetValidationIndicatorCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetValidationIndicatorCol ( )

Gets validationIndicatorCol value

Returns
validationIndicatorCol: Indicates whether the row is for training or validation

◆ GetVerbosity()

int Synapse.ML.Lightgbm.LightGBMClassifier.GetVerbosity ( )

Gets verbosity value

Returns
verbosity: Verbosity where lt 0 is Fatal, eq 0 is Error, eq 1 is Info, gt 1 is Debug

◆ GetWeightCol()

string Synapse.ML.Lightgbm.LightGBMClassifier.GetWeightCol ( )

Gets weightCol value

Returns
weightCol: The name of the weight column

◆ GetXGBoostDartMode()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetXGBoostDartMode ( )

Gets xGBoostDartMode value

Returns
xGBoostDartMode: Set this to true to use xgboost dart mode

◆ GetZeroAsMissing()

bool Synapse.ML.Lightgbm.LightGBMClassifier.GetZeroAsMissing ( )

Gets zeroAsMissing value

Returns
zeroAsMissing: Set to true to treat all zero as missing values (including the unshown values in LibSVM / sparse matrices). Set to false to use na for representing missing values

◆ Load()

static LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.Load ( string  path)
static

Loads the LightGBMClassifier that was previously saved using Save(string).

Parameters
pathThe path the previous LightGBMClassifier was saved to
Returns
New LightGBMClassifier object, loaded from path.

◆ Read()

JavaMLReader<LightGBMClassifier> Synapse.ML.Lightgbm.LightGBMClassifier.Read ( )

Get the corresponding JavaMLReader instance.

Returns
an JavaMLReader<LightGBMClassifier> instance for this ML instance.

◆ Save()

void Synapse.ML.Lightgbm.LightGBMClassifier.Save ( string  path)

Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.

Parameters
pathThe path to save the object to

◆ SetBaggingFraction()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetBaggingFraction ( double  value)

Sets value for baggingFraction

Parameters
valueBagging fraction
Returns
New LightGBMClassifier object

◆ SetBaggingFreq()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetBaggingFreq ( int  value)

Sets value for baggingFreq

Parameters
valueBagging frequency
Returns
New LightGBMClassifier object

◆ SetBaggingSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetBaggingSeed ( int  value)

Sets value for baggingSeed

Parameters
valueBagging seed
Returns
New LightGBMClassifier object

◆ SetBinSampleCount()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetBinSampleCount ( int  value)

Sets value for binSampleCount

Parameters
valueNumber of samples considered at computing histogram bins
Returns
New LightGBMClassifier object

◆ SetBoostFromAverage()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetBoostFromAverage ( bool  value)

Sets value for boostFromAverage

Parameters
valueAdjusts initial score to the mean of labels for faster convergence
Returns
New LightGBMClassifier object

◆ SetBoostingType()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetBoostingType ( string  value)

Sets value for boostingType

Parameters
valueDefault gbdt = traditional Gradient Boosting Decision Tree. Options are: gbdt, gbrt, rf (Random Forest), random_forest, dart (Dropouts meet Multiple Additive Regression Trees), goss (Gradient-based One-Side Sampling).
Returns
New LightGBMClassifier object

◆ SetCategoricalSlotIndexes()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetCategoricalSlotIndexes ( int []  value)

Sets value for categoricalSlotIndexes

Parameters
valueList of categorical column indexes, the slot index in the features column
Returns
New LightGBMClassifier object

◆ SetCategoricalSlotNames()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetCategoricalSlotNames ( string []  value)

Sets value for categoricalSlotNames

Parameters
valueList of categorical column slot names, the slot name in the features column
Returns
New LightGBMClassifier object

◆ SetCatl2()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetCatl2 ( double  value)

Sets value for catl2

Parameters
valueL2 regularization in categorical split
Returns
New LightGBMClassifier object

◆ SetCatSmooth()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetCatSmooth ( double  value)

Sets value for catSmooth

Parameters
valuethis can reduce the effect of noises in categorical features, especially for categories with few data
Returns
New LightGBMClassifier object

◆ SetChunkSize()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetChunkSize ( int  value)

Sets value for chunkSize

Parameters
valueAdvanced parameter to specify the chunk size for copying Java data to native. If set too high, memory may be wasted, but if set too low, performance may be reduced during data copy.If dataset size is known beforehand, set to the number of rows in the dataset.
Returns
New LightGBMClassifier object

◆ SetDataRandomSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetDataRandomSeed ( int  value)

Sets value for dataRandomSeed

Parameters
valueRandom seed for sampling data to construct histogram bins.
Returns
New LightGBMClassifier object

◆ SetDefaultListenPort()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetDefaultListenPort ( int  value)

Sets value for defaultListenPort

Parameters
valueThe default listen port on executors, used for testing
Returns
New LightGBMClassifier object

◆ SetDeterministic()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetDeterministic ( bool  value)

Sets value for deterministic

Parameters
valueUsed only with cpu devide type. Setting this to true should ensure stable results when using the same data and the same parameters. Note: setting this to true may slow down training. To avoid potential instability due to numerical issues, please set force_col_wise=true or force_row_wise=true when setting deterministic=true
Returns
New LightGBMClassifier object

◆ SetDriverListenPort()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetDriverListenPort ( int  value)

Sets value for driverListenPort

Parameters
valueThe listen port on a driver. Default value is 0 (random)
Returns
New LightGBMClassifier object

◆ SetDropRate()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetDropRate ( double  value)

Sets value for dropRate

Parameters
valueDropout rate: a fraction of previous trees to drop during the dropout
Returns
New LightGBMClassifier object

◆ SetDropSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetDropSeed ( int  value)

Sets value for dropSeed

Parameters
valueRandom seed to choose dropping models. Only used in dart.
Returns
New LightGBMClassifier object

◆ SetEarlyStoppingRound()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetEarlyStoppingRound ( int  value)

Sets value for earlyStoppingRound

Parameters
valueEarly stopping round
Returns
New LightGBMClassifier object

◆ SetExecutionMode()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetExecutionMode ( string  value)

Sets value for executionMode

Parameters
valueSpecify how LightGBM is executed. Values can be streaming, bulk. Default is bulk.
Returns
New LightGBMClassifier object

◆ SetExtraSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetExtraSeed ( int  value)

Sets value for extraSeed

Parameters
valueRandom seed for selecting threshold when extra_trees is true
Returns
New LightGBMClassifier object

◆ SetFeatureFraction()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetFeatureFraction ( double  value)

Sets value for featureFraction

Parameters
valueFeature fraction
Returns
New LightGBMClassifier object

◆ SetFeatureFractionByNode()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetFeatureFractionByNode ( double  value)

Sets value for featureFractionByNode

Parameters
valueFeature fraction by node
Returns
New LightGBMClassifier object

◆ SetFeatureFractionSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetFeatureFractionSeed ( int  value)

Sets value for featureFractionSeed

Parameters
valueFeature fraction seed
Returns
New LightGBMClassifier object

◆ SetFeaturesCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetFeaturesCol ( string  value)

Sets value for featuresCol

Parameters
valuefeatures column name
Returns
New LightGBMClassifier object

◆ SetFeaturesShapCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetFeaturesShapCol ( string  value)

Sets value for featuresShapCol

Parameters
valueOutput SHAP vector column name after prediction containing the feature contribution values
Returns
New LightGBMClassifier object

◆ SetFobj()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetFobj ( object  value)

Sets value for fobj

Parameters
valueCustomized objective function. Should accept two parameters: preds, train_data, and return (grad, hess).
Returns
New LightGBMClassifier object

◆ SetImprovementTolerance()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetImprovementTolerance ( double  value)

Sets value for improvementTolerance

Parameters
valueTolerance to consider improvement in metric
Returns
New LightGBMClassifier object

◆ SetInitScoreCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetInitScoreCol ( string  value)

Sets value for initScoreCol

Parameters
valueThe name of the initial score column, used for continued training
Returns
New LightGBMClassifier object

◆ SetIsEnableSparse()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetIsEnableSparse ( bool  value)

Sets value for isEnableSparse

Parameters
valueUsed to enable/disable sparse optimization
Returns
New LightGBMClassifier object

◆ SetIsProvideTrainingMetric()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetIsProvideTrainingMetric ( bool  value)

Sets value for isProvideTrainingMetric

Parameters
valueWhether output metric result over training dataset.
Returns
New LightGBMClassifier object

◆ SetIsUnbalance()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetIsUnbalance ( bool  value)

Sets value for isUnbalance

Parameters
valueSet to true if training data is unbalanced in binary classification scenario
Returns
New LightGBMClassifier object

◆ SetLabelCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetLabelCol ( string  value)

Sets value for labelCol

Parameters
valuelabel column name
Returns
New LightGBMClassifier object

◆ SetLambdaL1()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetLambdaL1 ( double  value)

Sets value for lambdaL1

Parameters
valueL1 regularization
Returns
New LightGBMClassifier object

◆ SetLambdaL2()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetLambdaL2 ( double  value)

Sets value for lambdaL2

Parameters
valueL2 regularization
Returns
New LightGBMClassifier object

◆ SetLeafPredictionCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetLeafPredictionCol ( string  value)

Sets value for leafPredictionCol

Parameters
valuePredicted leaf indices's column name
Returns
New LightGBMClassifier object

◆ SetLearningRate()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetLearningRate ( double  value)

Sets value for learningRate

Parameters
valueLearning rate or shrinkage rate
Returns
New LightGBMClassifier object

◆ SetMatrixType()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMatrixType ( string  value)

Sets value for matrixType

Parameters
valueAdvanced parameter to specify whether the native lightgbm matrix constructed should be sparse or dense. Values can be auto, sparse or dense. Default value is auto, which samples first ten rows to determine type.
Returns
New LightGBMClassifier object

◆ SetMaxBin()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxBin ( int  value)

Sets value for maxBin

Parameters
valueMax bin
Returns
New LightGBMClassifier object

◆ SetMaxBinByFeature()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxBinByFeature ( int []  value)

Sets value for maxBinByFeature

Parameters
valueMax number of bins for each feature
Returns
New LightGBMClassifier object

◆ SetMaxCatThreshold()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxCatThreshold ( int  value)

Sets value for maxCatThreshold

Parameters
valuelimit number of split points considered for categorical features
Returns
New LightGBMClassifier object

◆ SetMaxCatToOnehot()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxCatToOnehot ( int  value)

Sets value for maxCatToOnehot

Parameters
valuewhen number of categories of one feature smaller than or equal to this, one-vs-other split algorithm will be used
Returns
New LightGBMClassifier object

◆ SetMaxDeltaStep()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxDeltaStep ( double  value)

Sets value for maxDeltaStep

Parameters
valueUsed to limit the max output of tree leaves
Returns
New LightGBMClassifier object

◆ SetMaxDepth()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxDepth ( int  value)

Sets value for maxDepth

Parameters
valueMax depth
Returns
New LightGBMClassifier object

◆ SetMaxDrop()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMaxDrop ( int  value)

Sets value for maxDrop

Parameters
valueMax number of dropped trees during one boosting iteration
Returns
New LightGBMClassifier object

◆ SetMetric()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMetric ( string  value)

Sets value for metric

Parameters
valueMetrics to be evaluated on the evaluation data. Options are: empty string or not specified means that metric corresponding to specified objective will be used (this is possible only for pre-defined objective functions, otherwise no evaluation metric will be added). None (string, not a None value) means that no metric will be registered, aliases: na, null, custom. l1, absolute loss, aliases: mean_absolute_error, mae, regression_l1. l2, square loss, aliases: mean_squared_error, mse, regression_l2, regression. rmse, root square loss, aliases: root_mean_squared_error, l2_root. quantile, Quantile regression. mape, MAPE loss, aliases: mean_absolute_percentage_error. huber, Huber loss. fair, Fair loss. poisson, negative log-likelihood for Poisson regression. gamma, negative log-likelihood for Gamma regression. gamma_deviance, residual deviance for Gamma regression. tweedie, negative log-likelihood for Tweedie regression. ndcg, NDCG, aliases: lambdarank. map, MAP, aliases: mean_average_precision. auc, AUC. binary_logloss, log loss, aliases: binary. binary_error, for one sample: 0 for correct classification, 1 for error classification. multi_logloss, log loss for multi-class classification, aliases: multiclass, softmax, multiclassova, multiclass_ova, ova, ovr. multi_error, error rate for multi-class classification. cross_entropy, cross-entropy (with optional linear weights), aliases: xentropy. cross_entropy_lambda, intensity-weighted cross-entropy, aliases: xentlambda. kullback_leibler, Kullback-Leibler divergence, aliases: kldiv.
Returns
New LightGBMClassifier object

◆ SetMicroBatchSize()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMicroBatchSize ( int  value)

Sets value for microBatchSize

Parameters
valueSpecify how many elements are sent in a streaming micro-batch.
Returns
New LightGBMClassifier object

◆ SetMinDataInLeaf()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMinDataInLeaf ( int  value)

Sets value for minDataInLeaf

Parameters
valueMinimal number of data in one leaf. Can be used to deal with over-fitting.
Returns
New LightGBMClassifier object

◆ SetMinDataPerBin()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMinDataPerBin ( int  value)

Sets value for minDataPerBin

Parameters
valueMinimal number of data inside one bin
Returns
New LightGBMClassifier object

◆ SetMinDataPerGroup()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMinDataPerGroup ( int  value)

Sets value for minDataPerGroup

Parameters
valueminimal number of data per categorical group
Returns
New LightGBMClassifier object

◆ SetMinGainToSplit()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMinGainToSplit ( double  value)

Sets value for minGainToSplit

Parameters
valueThe minimal gain to perform split
Returns
New LightGBMClassifier object

◆ SetMinSumHessianInLeaf()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMinSumHessianInLeaf ( double  value)

Sets value for minSumHessianInLeaf

Parameters
valueMinimal sum hessian in one leaf
Returns
New LightGBMClassifier object

◆ SetModelString()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetModelString ( string  value)

Sets value for modelString

Parameters
valueLightGBM model to retrain
Returns
New LightGBMClassifier object

◆ SetMonotoneConstraints()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMonotoneConstraints ( int []  value)

Sets value for monotoneConstraints

Parameters
valueused for constraints of monotonic features. 1 means increasing, -1 means decreasing, 0 means non-constraint. Specify all features in order.
Returns
New LightGBMClassifier object

◆ SetMonotoneConstraintsMethod()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMonotoneConstraintsMethod ( string  value)

Sets value for monotoneConstraintsMethod

Parameters
valueMonotone constraints method. basic, intermediate, or advanced.
Returns
New LightGBMClassifier object

◆ SetMonotonePenalty()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetMonotonePenalty ( double  value)

Sets value for monotonePenalty

Parameters
valueA penalization parameter X forbids any monotone splits on the first X (rounded down) level(s) of the tree.
Returns
New LightGBMClassifier object

◆ SetNegBaggingFraction()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetNegBaggingFraction ( double  value)

Sets value for negBaggingFraction

Parameters
valueNegative Bagging fraction
Returns
New LightGBMClassifier object

◆ SetNumBatches()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetNumBatches ( int  value)

Sets value for numBatches

Parameters
valueIf greater than 0, splits data into separate batches during training
Returns
New LightGBMClassifier object

◆ SetNumIterations()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetNumIterations ( int  value)

Sets value for numIterations

Parameters
valueNumber of iterations, LightGBM constructs num_class * num_iterations trees
Returns
New LightGBMClassifier object

◆ SetNumLeaves()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetNumLeaves ( int  value)

Sets value for numLeaves

Parameters
valueNumber of leaves
Returns
New LightGBMClassifier object

◆ SetNumTasks()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetNumTasks ( int  value)

Sets value for numTasks

Parameters
valueAdvanced parameter to specify the number of tasks. SynapseML tries to guess this based on cluster configuration, but this parameter can be used to override.
Returns
New LightGBMClassifier object

◆ SetNumThreads()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetNumThreads ( int  value)

Sets value for numThreads

Parameters
valueNumber of threads per executor for LightGBM. For the best speed, set this to the number of real CPU cores.
Returns
New LightGBMClassifier object

◆ SetObjective()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetObjective ( string  value)

Sets value for objective

Parameters
valueThe Objective. For regression applications, this can be: regression_l2, regression_l1, huber, fair, poisson, quantile, mape, gamma or tweedie. For classification applications, this can be: binary, multiclass, or multiclassova.
Returns
New LightGBMClassifier object

◆ SetObjectiveSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetObjectiveSeed ( int  value)

Sets value for objectiveSeed

Parameters
valueRandom seed for objectives, if random process is needed. Currently used only for rank_xendcg objective.
Returns
New LightGBMClassifier object

◆ SetOtherRate()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetOtherRate ( double  value)

Sets value for otherRate

Parameters
valueThe retain ratio of small gradient data. Only used in goss.
Returns
New LightGBMClassifier object

◆ SetParallelism()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetParallelism ( string  value)

Sets value for parallelism

Parameters
valueTree learner parallelism, can be set to data_parallel or voting_parallel
Returns
New LightGBMClassifier object

◆ SetPassThroughArgs()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetPassThroughArgs ( string  value)

Sets value for passThroughArgs

Parameters
valueDirect string to pass through to LightGBM library (appended with other explicitly set params). Will override any parameters given with explicit setters. Can include multiple parameters in one string.
Returns
New LightGBMClassifier object

◆ SetPosBaggingFraction()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetPosBaggingFraction ( double  value)

Sets value for posBaggingFraction

Parameters
valuePositive Bagging fraction
Returns
New LightGBMClassifier object

◆ SetPredictDisableShapeCheck()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetPredictDisableShapeCheck ( bool  value)

Sets value for predictDisableShapeCheck

Parameters
valuecontrol whether or not LightGBM raises an error when you try to predict on data with a different number of features than the training data
Returns
New LightGBMClassifier object

◆ SetPredictionCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetPredictionCol ( string  value)

Sets value for predictionCol

Parameters
valueprediction column name
Returns
New LightGBMClassifier object

◆ SetProbabilityCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetProbabilityCol ( string  value)

Sets value for probabilityCol

Parameters
valueColumn name for predicted class conditional probabilities. Note: Not all models output well-calibrated probability estimates! These probabilities should be treated as confidences, not precise probabilities
Returns
New LightGBMClassifier object

◆ SetRawPredictionCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetRawPredictionCol ( string  value)

Sets value for rawPredictionCol

Parameters
valueraw prediction (a.k.a. confidence) column name
Returns
New LightGBMClassifier object

◆ SetRepartitionByGroupingColumn()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetRepartitionByGroupingColumn ( bool  value)

Sets value for repartitionByGroupingColumn

Parameters
valueRepartition training data according to grouping column, on by default.
Returns
New LightGBMClassifier object

◆ SetSeed()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetSeed ( int  value)

Sets value for seed

Parameters
valueMain seed, used to generate other seeds
Returns
New LightGBMClassifier object

◆ SetSkipDrop()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetSkipDrop ( double  value)

Sets value for skipDrop

Parameters
valueProbability of skipping the dropout procedure during a boosting iteration
Returns
New LightGBMClassifier object

◆ SetSlotNames()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetSlotNames ( string []  value)

Sets value for slotNames

Parameters
valueList of slot names in the features column
Returns
New LightGBMClassifier object

◆ SetThresholds()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetThresholds ( double []  value)

Sets value for thresholds

Parameters
valueThresholds in multi-class classification to adjust the probability of predicting each class. Array must have length equal to the number of classes, with values > 0 excepting that at most one value may be 0. The class with largest value p/t is predicted, where p is the original probability of that class and t is the class's threshold
Returns
New LightGBMClassifier object

◆ SetTimeout()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetTimeout ( double  value)

Sets value for timeout

Parameters
valueTimeout in seconds
Returns
New LightGBMClassifier object

◆ SetTopK()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetTopK ( int  value)

Sets value for topK

Parameters
valueThe top_k value used in Voting parallel, set this to larger value for more accurate result, but it will slow down the training speed. It should be greater than 0
Returns
New LightGBMClassifier object

◆ SetTopRate()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetTopRate ( double  value)

Sets value for topRate

Parameters
valueThe retain ratio of large gradient data. Only used in goss.
Returns
New LightGBMClassifier object

◆ SetUniformDrop()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetUniformDrop ( bool  value)

Sets value for uniformDrop

Parameters
valueSet this to true to use uniform drop in dart mode
Returns
New LightGBMClassifier object

◆ SetUseBarrierExecutionMode()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetUseBarrierExecutionMode ( bool  value)

Sets value for useBarrierExecutionMode

Parameters
valueBarrier execution mode which uses a barrier stage, off by default.
Returns
New LightGBMClassifier object

◆ SetUseMissing()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetUseMissing ( bool  value)

Sets value for useMissing

Parameters
valueSet this to false to disable the special handle of missing value
Returns
New LightGBMClassifier object

◆ SetUseSingleDatasetMode()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetUseSingleDatasetMode ( bool  value)

Sets value for useSingleDatasetMode

Parameters
valueUse single dataset execution mode to create a single native dataset per executor (singleton) to reduce memory and communication overhead.
Returns
New LightGBMClassifier object

◆ SetValidationIndicatorCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetValidationIndicatorCol ( string  value)

Sets value for validationIndicatorCol

Parameters
valueIndicates whether the row is for training or validation
Returns
New LightGBMClassifier object

◆ SetVerbosity()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetVerbosity ( int  value)

Sets value for verbosity

Parameters
valueVerbosity where lt 0 is Fatal, eq 0 is Error, eq 1 is Info, gt 1 is Debug
Returns
New LightGBMClassifier object

◆ SetWeightCol()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetWeightCol ( string  value)

Sets value for weightCol

Parameters
valueThe name of the weight column
Returns
New LightGBMClassifier object

◆ SetXGBoostDartMode()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetXGBoostDartMode ( bool  value)

Sets value for xGBoostDartMode

Parameters
valueSet this to true to use xgboost dart mode
Returns
New LightGBMClassifier object

◆ SetZeroAsMissing()

LightGBMClassifier Synapse.ML.Lightgbm.LightGBMClassifier.SetZeroAsMissing ( bool  value)

Sets value for zeroAsMissing

Parameters
valueSet to true to treat all zero as missing values (including the unshown values in LibSVM / sparse matrices). Set to false to use na for representing missing values
Returns
New LightGBMClassifier object

The documentation for this class was generated from the following file: