Export a machine learning model.
Export a machine learning model.
Export-MLModel [-Model] <TransformerChain<ITransformer>> [-Path] <String> -Schema <DataViewSchema> [-Force] [-PassThru] [-Context <MLContext>] [<CommonParameters>]
The model to save to file.
Type: Microsoft.ML.Data.TransformerChain<Microsoft.ML.ITransformer>
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The location where to save the model.
Type: System.String
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The data schema.
Type: Microsoft.ML.DataViewSchema
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Overwrite existing files.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Return the model.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
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 |
---|---|
None | This cmdlet does not accept pipeline input. |
Type | Description |
---|---|
Microsoft.ML.Data.TransformerChain<Microsoft.ML.ITransformer> | This cmdlet returns the TransformerChain if -PassThru is used. |