Share via


IMLCustomModel Interface

Definition

Interface defining a custom CoreML model.

[Foundation.Protocol(Name="MLCustomModel", WrapperType=typeof(CoreML.MLCustomModelWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPrediction", ParameterByRef=new System.Boolean[] { false, false, true }, ParameterType=new System.Type[] { typeof(CoreML.IMLFeatureProvider), typeof(CoreML.MLPredictionOptions), typeof(Foundation.NSError) }, ReturnType=typeof(CoreML.IMLFeatureProvider), Selector="predictionFromFeatures:options:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPredictions", ParameterByRef=new System.Boolean[] { false, false, true }, ParameterType=new System.Type[] { typeof(CoreML.IMLBatchProvider), typeof(CoreML.MLPredictionOptions), typeof(Foundation.NSError) }, ReturnType=typeof(CoreML.IMLBatchProvider), Selector="predictionsFromBatch:options:error:")]
public interface IMLCustomModel : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="MLCustomModel", WrapperType=typeof(CoreML.MLCustomModelWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPrediction", ParameterByRef=new System.Boolean[] { false, false, true }, ParameterType=new System.Type[] { typeof(CoreML.IMLFeatureProvider), typeof(CoreML.MLPredictionOptions), typeof(Foundation.NSError) }, ReturnType=typeof(CoreML.IMLFeatureProvider), Selector="predictionFromFeatures:options:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPredictions", ParameterByRef=new System.Boolean[] { false, false, true }, ParameterType=new System.Type[] { typeof(CoreML.IMLBatchProvider), typeof(CoreML.MLPredictionOptions), typeof(Foundation.NSError) }, ReturnType=typeof(CoreML.IMLBatchProvider), Selector="predictionsFromBatch:options:error:")>]
type IMLCustomModel = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
CreateInstance<T>(MLModelDescription, NSDictionary<NSString,NSObject>, NSError)
GetPrediction(IMLFeatureProvider, MLPredictionOptions, NSError)

Gets the most likely prediction for inputFeatures and options.

GetPredictions(IMLBatchProvider, MLPredictionOptions, NSError)

Gets the set of predictions for inputBatch, applying options to each input.

Extension Methods

Name Description
GetPredictions(IMLCustomModel, IMLBatchProvider, MLPredictionOptions, NSError)

Gets the set of predictions for inputBatch, applying options to each input.

GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to