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

LightGBMRegressionModel implements LightGBMRegressionModel More...

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

Public Member Functions

 LightGBMRegressionModel ()
 Creates a LightGBMRegressionModel without any parameters. More...
 
 LightGBMRegressionModel (string uid)
 Creates a LightGBMRegressionModel with a UID that is used to give the LightGBMRegressionModel a unique ID. More...
 
LightGBMRegressionModel SetFeaturesCol (string value)
 Sets value for featuresCol More...
 
LightGBMRegressionModel SetFeaturesShapCol (string value)
 Sets value for featuresShapCol More...
 
LightGBMRegressionModel SetLabelCol (string value)
 Sets value for labelCol More...
 
LightGBMRegressionModel SetLeafPredictionCol (string value)
 Sets value for leafPredictionCol More...
 
LightGBMRegressionModel SetLightGBMBooster (LightGBMBooster value)
 Sets value for lightGBMBooster More...
 
LightGBMRegressionModel SetNumIterations (int value)
 Sets value for numIterations More...
 
LightGBMRegressionModel SetPredictDisableShapeCheck (bool value)
 Sets value for predictDisableShapeCheck More...
 
LightGBMRegressionModel SetPredictionCol (string value)
 Sets value for predictionCol More...
 
LightGBMRegressionModel SetStartIteration (int value)
 Sets value for startIteration More...
 
string GetFeaturesCol ()
 Gets featuresCol value More...
 
string GetFeaturesShapCol ()
 Gets featuresShapCol value More...
 
string GetLabelCol ()
 Gets labelCol value More...
 
string GetLeafPredictionCol ()
 Gets leafPredictionCol value More...
 
LightGBMBooster GetLightGBMBooster ()
 Gets lightGBMBooster value More...
 
int GetNumIterations ()
 Gets numIterations value More...
 
bool GetPredictDisableShapeCheck ()
 Gets predictDisableShapeCheck value More...
 
string GetPredictionCol ()
 Gets predictionCol value More...
 
int GetStartIteration ()
 Gets startIteration value 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< LightGBMRegressionModelRead ()
 Get the corresponding JavaMLReader instance. More...
 

Static Public Member Functions

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

Detailed Description

LightGBMRegressionModel implements LightGBMRegressionModel

Constructor & Destructor Documentation

◆ LightGBMRegressionModel() [1/2]

Synapse.ML.Lightgbm.LightGBMRegressionModel.LightGBMRegressionModel ( )
inline

Creates a LightGBMRegressionModel without any parameters.

◆ LightGBMRegressionModel() [2/2]

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

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

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

Member Function Documentation

◆ GetFeaturesCol()

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

Gets featuresCol value

Returns
featuresCol: features column name

◆ GetFeaturesShapCol()

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

Gets featuresShapCol value

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

◆ GetLabelCol()

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

Gets labelCol value

Returns
labelCol: label column name

◆ GetLeafPredictionCol()

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

Gets leafPredictionCol value

Returns
leafPredictionCol: Predicted leaf indices's column name

◆ GetLightGBMBooster()

LightGBMBooster Synapse.ML.Lightgbm.LightGBMRegressionModel.GetLightGBMBooster ( )

Gets lightGBMBooster value

Returns
lightGBMBooster: The trained LightGBM booster

◆ GetNumIterations()

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

Gets numIterations value

Returns
numIterations: Sets the total number of iterations used in the prediction.If <= 0, all iterations from start_iteration are used (no limits).

◆ GetPredictDisableShapeCheck()

bool Synapse.ML.Lightgbm.LightGBMRegressionModel.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.LightGBMRegressionModel.GetPredictionCol ( )

Gets predictionCol value

Returns
predictionCol: prediction column name

◆ GetStartIteration()

int Synapse.ML.Lightgbm.LightGBMRegressionModel.GetStartIteration ( )

Gets startIteration value

Returns
startIteration: Sets the start index of the iteration to predict. If <= 0, starts from the first iteration.

◆ Load()

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

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

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

◆ Read()

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

Get the corresponding JavaMLReader instance.

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

◆ Save()

void Synapse.ML.Lightgbm.LightGBMRegressionModel.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

◆ SetFeaturesCol()

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

Sets value for featuresCol

Parameters
valuefeatures column name
Returns
New LightGBMRegressionModel object

◆ SetFeaturesShapCol()

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

Sets value for featuresShapCol

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

◆ SetLabelCol()

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

Sets value for labelCol

Parameters
valuelabel column name
Returns
New LightGBMRegressionModel object

◆ SetLeafPredictionCol()

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

Sets value for leafPredictionCol

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

◆ SetLightGBMBooster()

LightGBMRegressionModel Synapse.ML.Lightgbm.LightGBMRegressionModel.SetLightGBMBooster ( LightGBMBooster  value)

Sets value for lightGBMBooster

Parameters
valueThe trained LightGBM booster
Returns
New LightGBMRegressionModel object

◆ SetNumIterations()

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

Sets value for numIterations

Parameters
valueSets the total number of iterations used in the prediction.If <= 0, all iterations from start_iteration are used (no limits).
Returns
New LightGBMRegressionModel object

◆ SetPredictDisableShapeCheck()

LightGBMRegressionModel Synapse.ML.Lightgbm.LightGBMRegressionModel.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 LightGBMRegressionModel object

◆ SetPredictionCol()

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

Sets value for predictionCol

Parameters
valueprediction column name
Returns
New LightGBMRegressionModel object

◆ SetStartIteration()

LightGBMRegressionModel Synapse.ML.Lightgbm.LightGBMRegressionModel.SetStartIteration ( int  value)

Sets value for startIteration

Parameters
valueSets the start index of the iteration to predict. If <= 0, starts from the first iteration.
Returns
New LightGBMRegressionModel object

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