Train a linear regression model using Online Gradient Descent (OGD) for estimating the parameters of the linear regression model.
Train a linear regression model using Online Gradient Descent (OGD) for estimating the parameters of the linear regression model.
Add-OnlineGradientDescentTrainer [[-LabelColumn] <String>] [[-FeatureColumn] <String>] [-LossFunction <IRegressionLoss>] [-LearningRate <Single>] [-DontDecreaseLearningRate] [-L2Regularization <Single>] [-Iterations <Int32>] [-AppendTo <EstimatorChain<ITransformer>>] [-AppendScope <TransformerScope>] [-Context <MLContext>] [<CommonParameters>]
The name of the label column. The column data must be Single.
Type: System.String
Required: False
Position: 0
Default value: Label
Accept pipeline input: False
Accept wildcard characters: False
The name of the feature column. The column data must be a known-sized vector of Single.
Type: System.String
Required: False
Position: 1
Default value: Features
Accept pipeline input: False
Accept wildcard characters: False
The loss function minimized in the training process. Using, for example, SquaredLoss leads to a least square trainer.
Type: Microsoft.ML.Trainers.IRegressionLoss
Required: False
Position: named
Default value: null
Accept pipeline input: False
Accept wildcard characters: False
The initial learning rate used by SGD.
Type: System.Single
Required: False
Position: named
Default value: 0.1
Accept pipeline input: False
Accept wildcard characters: False
Do not decrease learning rate as iterations progress.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The L2 weight for regularization.
Type: System.Single
Required: False
Position: named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Number of passes through the training dataset.
Type: System.Int32
Required: False
Position: named
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
Append the created estimator to the end of this chain.
Type: Microsoft.ML.Data.EstimatorChain<Microsoft.ML.ITransformer>
Required: False
Position: named
Default value: null
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The scope allows for 'tagging' the estimators (and subsequently transformers) in the chain to be used 'only for training', 'for training and evaluation' etc.
Type: Microsoft.ML.Data.TransformerScope
Required: False
Position: named
Default value: Everything
Accept pipeline input: False
Accept wildcard characters: False
The context on which to perform the action. If omitted, the current (cached) context will be used.
Type: Microsoft.ML.MLContext
Required: False
Position: named
Default value: Current context
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Type | Description |
---|---|
Microsoft.ML.Data.EstimatorChain<Microsoft.ML.ITransformer> | You can pipe the EstimatorChain to append to this cmdlet. |
Type | Description |
---|---|
Microsoft.ML.Data.EstimatorChain<Microsoft.ML.ITransformer> | This cmdlet returns the appended EstimatorChain. |