MLModel.GetPrediction Method

Definition

Overloads

GetPrediction(IMLFeatureProvider, NSError)

Makes a prediction on input.

GetPrediction(IMLFeatureProvider, MLPredictionOptions, NSError)

Makes a prediction on input.

GetPrediction(IMLFeatureProvider, NSError)

Makes a prediction on input.

[Foundation.Export("predictionFromFeatures:error:")]
public virtual CoreML.IMLFeatureProvider GetPrediction (CoreML.IMLFeatureProvider input, out Foundation.NSError error);
abstract member GetPrediction : CoreML.IMLFeatureProvider *  -> CoreML.IMLFeatureProvider
override this.GetPrediction : CoreML.IMLFeatureProvider *  -> 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, MLPredictionOptions, NSError)

Makes a prediction on input.

[Foundation.Export("predictionFromFeatures:options:error:")]
public virtual CoreML.IMLFeatureProvider GetPrediction (CoreML.IMLFeatureProvider input, CoreML.MLPredictionOptions options, out Foundation.NSError error);
abstract member GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions *  -> CoreML.IMLFeatureProvider
override this.GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions *  -> 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