MLModel.GetPrediction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetPrediction(IMLFeatureProvider, NSError) |
Makes a prediction on |
| GetPrediction(IMLFeatureProvider, Action<IMLFeatureProvider,NSError>) | |
| GetPrediction(IMLFeatureProvider, MLPredictionOptions, NSError) |
Makes a prediction on |
| GetPrediction(IMLFeatureProvider, MLPredictionOptions, Action<IMLFeatureProvider,NSError>) |
GetPrediction(IMLFeatureProvider, NSError)
Makes a prediction on input.
[Foundation.Export("predictionFromFeatures:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreML.IMLFeatureProvider? GetPrediction(CoreML.IMLFeatureProvider input, out Foundation.NSError error);
[<Foundation.Export("predictionFromFeatures:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPrediction : CoreML.IMLFeatureProvider * NSError -> CoreML.IMLFeatureProvider
override this.GetPrediction : CoreML.IMLFeatureProvider * NSError -> CoreML.IMLFeatureProvider
Parameters
- input
- IMLFeatureProvider
The feature from which to make a prediction.
- error
- NSError
On failure, the error that occurred.
Returns
- Attributes
Applies to
GetPrediction(IMLFeatureProvider, Action<IMLFeatureProvider,NSError>)
[Foundation.Export("predictionFromFeatures:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void GetPrediction(CoreML.IMLFeatureProvider input, Action<CoreML.IMLFeatureProvider,Foundation.NSError> completionHandler);
[<Foundation.Export("predictionFromFeatures:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPrediction : CoreML.IMLFeatureProvider * Action<CoreML.IMLFeatureProvider, Foundation.NSError> -> unit
override this.GetPrediction : CoreML.IMLFeatureProvider * Action<CoreML.IMLFeatureProvider, Foundation.NSError> -> unit
Parameters
- input
- IMLFeatureProvider
- completionHandler
- Action<IMLFeatureProvider,NSError>
- Attributes
Applies to
GetPrediction(IMLFeatureProvider, MLPredictionOptions, NSError)
Makes a prediction on input.
[Foundation.Export("predictionFromFeatures:options:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreML.IMLFeatureProvider? GetPrediction(CoreML.IMLFeatureProvider input, CoreML.MLPredictionOptions options, out Foundation.NSError error);
[<Foundation.Export("predictionFromFeatures:options:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions * NSError -> CoreML.IMLFeatureProvider
override this.GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions * NSError -> CoreML.IMLFeatureProvider
Parameters
- input
- IMLFeatureProvider
The feature from which to make a prediction.
- options
- MLPredictionOptions
Options about resources to use for the prediction.
- error
- NSError
On failure, the error that occurred.
Returns
- Attributes
Applies to
GetPrediction(IMLFeatureProvider, MLPredictionOptions, Action<IMLFeatureProvider,NSError>)
[Foundation.Export("predictionFromFeatures:options:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void GetPrediction(CoreML.IMLFeatureProvider input, CoreML.MLPredictionOptions options, Action<CoreML.IMLFeatureProvider,Foundation.NSError> completionHandler);
[<Foundation.Export("predictionFromFeatures:options:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions * Action<CoreML.IMLFeatureProvider, Foundation.NSError> -> unit
override this.GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions * Action<CoreML.IMLFeatureProvider, Foundation.NSError> -> unit
Parameters
- input
- IMLFeatureProvider
- options
- MLPredictionOptions
- completionHandler
- Action<IMLFeatureProvider,NSError>
- Attributes