Share via


MLCustomModel.GetPrediction Method

Definition

Gets the most likely prediction for inputFeatures and options.

[Foundation.Export("predictionFromFeatures:options:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreML.IMLFeatureProvider? GetPrediction(CoreML.IMLFeatureProvider inputFeatures, 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

inputFeatures
IMLFeatureProvider
error
NSError

Returns

Implements

Attributes

Applies to