Package org.robovm.apple.coreml
Class MLModel
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.coreml.MLModel
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class MLModel extends NSObject
- Since:
- Available in iOS 11.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MLModel.MLModelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description MLModel()
protected
MLModel(NSObject.Handle h, long handle)
protected
MLModel(NSObject.SkipInit skipInit)
MLModel(NSURL url)
MLModel(NSURL url, MLModelConfiguration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NSURL
compileModel(NSURL modelURL)
protected static long
create(NSURL url, MLModelConfiguration configuration, NSError.NSErrorPtr error)
protected static long
create(NSURL url, NSError.NSErrorPtr error)
MLModelConfiguration
getConfiguration()
MLModelDescription
getModelDescription()
MLBatchProvider
getPredictionsFromBatch(MLBatchProvider inputBatch, MLPredictionOptions options)
MLFeatureProvider
predictionFromFeatures(MLFeatureProvider input)
MLFeatureProvider
predictionFromFeatures(MLFeatureProvider input, MLPredictionOptions options, NSError.NSErrorPtr error)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
MLModel
public MLModel()
-
MLModel
protected MLModel(NSObject.Handle h, long handle)
-
MLModel
protected MLModel(NSObject.SkipInit skipInit)
-
MLModel
public MLModel(NSURL url) throws NSErrorException
- Throws:
NSErrorException
-
MLModel
public MLModel(NSURL url, MLModelConfiguration configuration) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 12.0 and later.
-
-
Method Detail
-
getModelDescription
public MLModelDescription getModelDescription()
-
getConfiguration
public MLModelConfiguration getConfiguration()
- Since:
- Available in iOS 12.0 and later.
-
predictionFromFeatures
public MLFeatureProvider predictionFromFeatures(MLFeatureProvider input) throws NSErrorException
- Throws:
NSErrorException
-
predictionFromFeatures
public MLFeatureProvider predictionFromFeatures(MLFeatureProvider input, MLPredictionOptions options, NSError.NSErrorPtr error)
-
getPredictionsFromBatch
public MLBatchProvider getPredictionsFromBatch(MLBatchProvider inputBatch, MLPredictionOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 12.0 and later.
-
create
protected static long create(NSURL url, NSError.NSErrorPtr error)
-
create
protected static long create(NSURL url, MLModelConfiguration configuration, NSError.NSErrorPtr error)
- Since:
- Available in iOS 12.0 and later.
-
compileModel
public static NSURL compileModel(NSURL modelURL) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 11.0 and later.
-
-