RegressionConfig

Common LightGBM regression settings.

Record fields

NameDescription
LearningRateShrinkage rate, or None to use ML.NET auto-tuning.
MinimumExampleCountPerLeafMinimum examples per leaf, or None to use ML.NET auto-tuning.
NumberOfIterationsNumber of boosting iterations.
NumberOfLeavesMaximum number of leaves, or None to use ML.NET auto-tuning.
SeedRandom seed. The default is Some 0 for reproducibility.

RegressionConfig module

Constructors for LightGBM regression settings.

FunctionDescription
create ()Create settings from the ML.NET LightGBM defaults with a deterministic seed.

create

create ()

Create settings from the ML.NET LightGBM defaults with a deterministic seed.

Parameters

  • () : unit

Returns RegressionConfig

RegressionModel

A fitted LightGBM regression model.

Instance members

NameDescription
this.FeatureCountNumber of input features expected by the model.
this.TransformerUnderlying ML.NET model.

Regression

LightGBM regression operations.

FunctionDescription
evaluate dataset modelEvaluate a fitted regressor with ML.NET regression metrics.
fit config datasetFit a LightGBM regressor with common F# settings.
fitWithOptions seed configure datasetFit a LightGBM regressor after configuring the complete ML.NET options object.
load pathLoad a LightGBM regression model from the ML.NET zip format.
predict features modelPredict target values. Values are returned as a detached CPU float32 tensor.
save path modelSave a fitted model in the ML.NET zip format.

evaluate

evaluate dataset model

Evaluate a fitted regressor with ML.NET regression metrics.

Parameters

  • dataset : RegressionDataset
  • model : RegressionModel

Returns RegressionMetrics


fit

fit config dataset

Fit a LightGBM regressor with common F# settings.

Parameters

  • config : RegressionConfig
  • dataset : RegressionDataset

Returns RegressionModel


fitWithOptions

fitWithOptions seed configure dataset

Fit a LightGBM regressor after configuring the complete ML.NET options object.

Parameters

  • seed : int option
  • configure : Options -> unit
  • dataset : RegressionDataset

Returns RegressionModel


load

load path

Load a LightGBM regression model from the ML.NET zip format.

Parameters

  • path : string

Returns RegressionModel


predict

predict features model

Predict target values. Values are returned as a detached CPU float32 tensor.

Parameters

  • features : Tensor
  • model : RegressionModel

Returns Tensor


save

save path model

Save a fitted model in the ML.NET zip format.

Parameters

  • path : string
  • model : RegressionModel