Train a Deep Neural Network (DNN) to classify images.
Train a Deep Neural Network (DNN) to classify images.
Add-ImageClassificationTrainer [[-LabelColumn] <String>] [[-FeatureColumn] <String>] [[-ScoreColumn] <String>] [[-PredictedLabelColumn] <String>] [-ValidationSet <IDataView>] [-ValidationSetFraction <Nullable<Single>>] [-Arch <Architecture>] [-BatchSize <Int32>] [-Epoch <Int32>] [-LearningRate <Single>] [-MetricsCallback <ScriptBlock>] [-WorkspacePath <String>] [-TrainSetBottleneckCachedValuesPath <String>] [-ValidationSetBottleneckCachedValuesPath <String>] [-FinalModelPrefix <String>] [-DontTestOnTrainSet] [-ReuseTrainSetBottleneckCachedValues] [-ReuseValidationSetBottleneckCachedValues] [-AppendTo <EstimatorChain<ITransformer>>] [-AppendScope <TransformerScope>] [-Context <MLContext>] [<CommonParameters>]
The name of the label column. The default value is "Label".
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. The default value is "Features".
Type: System.String
Required: False
Position: 1
Default value: Features
Accept pipeline input: False
Accept wildcard characters: False
The name of the score column. The default value is "Score".
Type: System.String
Required: False
Position: 2
Default value: Score
Accept pipeline input: False
Accept wildcard characters: False
The name of the predicted label column. The default value is "PredictedLabel".
Type: System.String
Required: False
Position: 3
Default value: PredictedLabel
Accept pipeline input: False
Accept wildcard characters: False
The validation set used while training to improve model quality. The default value is null.
Type: Microsoft.ML.IDataView
Required: False
Position: named
Default value: null
Accept pipeline input: False
Accept wildcard characters: False
When validation set is not passed then a fraction of train set is used as validation. To disable this behavior set ValidationSetFraction to null. Accepts value between 0 and 1.0. The default value is 0.1 or 10% of the trainset.
Type: System.Single
Required: False
Position: named
Default value: 0.1
Accept pipeline input: False
Accept wildcard characters: False
Specifies the model architecture to be used in the case of image classification training using transfer learning. The default value is ResnetV250.
Type: Microsoft.ML.Vision.Architecture
Required: False
Position: named
Default value: ResnetV250
Accept pipeline input: False
Accept wildcard characters: False
Number of samples to use for mini-batch training. The default value is 10.
Type: System.Int32
Required: False
Position: named
Default value: 10
Accept pipeline input: False
Accept wildcard characters: False
Number of training iterations. The default value is 200.
Type: System.Int32
Required: False
Position: named
Default value: 200
Accept pipeline input: False
Accept wildcard characters: False
Learning rate to use during optimization. The default value is 0.01.
Type: System.Single
Required: False
Position: named
Default value: 0.01
Accept pipeline input: False
Accept wildcard characters: False
Callback to report statistics on accuracy/cross entropy during training phase. The default value is null.
Type: System.Management.Automation.ScriptBlock
Required: False
Position: named
Default value: null
Accept pipeline input: False
Accept wildcard characters: False
Indicates the path where the image bottleneck cache files and trained model are saved. The default value is a new temporary directory.
Type: System.String
Required: False
Position: named
Default value: New temporary directory
Accept pipeline input: False
Accept wildcard characters: False
Indicates the file name within the workspace to store trainset bottleneck values for caching. The default value is "trainSetBottleneckFile.csv".
Type: System.String
Required: False
Position: named
Default value: trainSetBottleneckFile.csv
Accept pipeline input: False
Accept wildcard characters: False
Indicates the file name within the workspace to store validationset bottleneck values for caching. The default value is "validationSetBottleneckFile.csv".
Type: System.String
Required: False
Position: named
Default value: validationSetBottleneckFile.csv
Accept pipeline input: False
Accept wildcard characters: False
Final model and checkpoint files/folder prefix for storing graph files. The default value is "custom_retrained_model_based_on_".
Type: System.String
Required: False
Position: named
Default value: 200
Accept pipeline input: False
Accept wildcard characters: False
Indicates to not evaluate the model on train set after every epoch.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates to not re-compute cached bottleneck trainset values if already available in the bin folder.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates to not re-compute cached bottleneck validationset values if already available in the bin folder.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
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. |