Platforms to show: All Mac Windows Linux Cross-Platform
MLModelMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreML | MBS Mac64bit Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Inputs and outputs are accessed via the MLFeatureProvider protocol.
Returns a model or nil if there is an error.
Available on macOS 10.13 or newer.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 properties
- property configuration as MLModelConfigurationMBS
- property Handle as Integer
- property modelDescription as MLModelDescriptionMBS
- 6 methods
- method Constructor Private
- method parameterValueForKey(key as MLParameterKeyMBS, byref error as NSErrorMBS) as Variant
- method predictionFromFeatures(input as MLFeatureProviderMBS, options as MLPredictionOptionsMBS = nil, byref error as NSErrorMBS) as MLFeatureProviderMBS
- method predictionFromFeaturesMT(input as MLFeatureProviderMBS, options as MLPredictionOptionsMBS = nil, byref error as NSErrorMBS) as MLFeatureProviderMBS
- method predictionsFromBatch(inputBatch as MLBatchProviderMBS, byref error as NSErrorMBS) as MLBatchProviderMBS
- method predictionsFromBatch(inputBatch as MLBatchProviderMBS, options as MLPredictionOptionsMBS, byref error as NSErrorMBS) as MLBatchProviderMBS
- 15 shared methods
- shared method available as Boolean
- shared method compileModelAtURL(URL as string, byref error as NSErrorMBS) as String
- shared method compileModelFile(File as folderItem, byref error as NSErrorMBS) as folderItem
- shared method MLModelAuthorKey as String
- shared method MLModelCreatorDefinedKey as String
- shared method MLModelDescriptionKey as String
- shared method MLModelErrorDomain as String
- shared method MLModelLicenseKey as String
- shared method MLModelVersionStringKey as String
- shared method modelWithContentsOfFile(file as FolderItem, byref error as NSErrorMBS) as MLModelMBS
- shared method modelWithContentsOfFile(file as FolderItem, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS) as MLModelMBS
- shared method modelWithContentsOfPath(Path as string, byref error as NSErrorMBS) as MLModelMBS
- shared method modelWithContentsOfPath(Path as string, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS) as MLModelMBS
- shared method modelWithContentsOfURL(URL as string, byref error as NSErrorMBS) as MLModelMBS
- shared method modelWithContentsOfURL(URL as string, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS) as MLModelMBS
- 8 constants
Errors
Constant | Value | Description |
---|---|---|
ErrorCustomLayer | 4 |
An error related to a custom layer in your model. |
ErrorCustomModel | 5 |
An error related to your custom model. |
ErrorDescriptionMismatch | 2 |
Mismatch error. |
ErrorFeatureType | 1 |
Type error. |
ErrorGeneric | 0 |
Generic error. |
ErrorIO | 3 |
I/O file error. |
ErrorParameters | 7 |
An error related to missing or invalid model parameters. |
ErrorUpdate | 6 |
An error related to updating a model. |
This class has no sub classes.
Some properties using for this class:
- MLUpdateContextMBS.Model as MLModelMBS
Some examples using this class:
Blog Entries
- Multithreaded plugin functions can increase speed of Xojo application
- Update Machine Learning Model on Device
The items on this page are in the following plugins: MBS Mac64bit Plugin.
MLModelDescriptionMBS - MLMultiArrayConstraintMBS
