Sdílet prostřednictvím


MLModel.GetPrediction Method

Definition

Overloads

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

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

completionHandler
Action<IMLFeatureProvider,NSError>
Attributes

Applies to