Share via


GamModelParametersBase Class

Definition

The base class for GAM Model Parameters.

public abstract class GamModelParametersBase : Microsoft.ML.Trainers.ModelParametersBase<float>, Microsoft.ML.Trainers.ICalculateFeatureContribution
type GamModelParametersBase = class
    inherit ModelParametersBase<single>
    interface ICalculateFeatureContribution
Public MustInherit Class GamModelParametersBase
Inherits ModelParametersBase(Of Single)
Implements ICalculateFeatureContribution
Inheritance
GamModelParametersBase
Derived
Implements

Fields

Bias

The model intercept. Also known as bias or mean effect.

NumberOfShapeFunctions

The number of shape functions used in the model.

Methods

GetBinEffects(Int32)

Get the binned weights for each feature.

GetBinUpperBounds(Int32)

Get the bin upper bounds for each feature.

Explicit Interface Implementations

ICalculateFeatureContribution.FeatureContributionCalculator

Used to determine the contribution of each feature to the score of an example by FeatureContributionCalculatingTransformer. For Generalized Additive Models (GAM), the contribution of a feature is equal to the shape function for the given feature evaluated at the feature value.

ICanSaveModel.Save(ModelSaveContext) (Inherited from ModelParametersBase<TOutput>)

Applies to