Dela via


LinearModelParameters Class

Definition

Base class for linear model parameters.

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

Properties

Bias

The predictor's bias term.

Weights

The predictor's feature weight coefficients.

Explicit Interface Implementations

ICalculateFeatureContribution.FeatureContributionCalculator

Used to determine the contribution of each feature to the score of an example by FeatureContributionCalculatingTransformer. For linear models, the contribution of a given feature is equal to the product of feature value times the corresponding weight.

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

Applies to