Platforms to show: All Mac Windows Linux Cross-Platform

Back to MLModelMBS class.

MLModelMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The private constructor.

MLModelMBS.parameterValueForKey(key as MLParameterKeyMBS, byref error as NSErrorMBS) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides value for the given parameter.

Returns nil on error.
Available on MacOS 10.15 or newer.

MLModelMBS.predictionFromFeatures(input as MLFeatureProviderMBS, options as MLPredictionOptionsMBS = nil, byref error as NSErrorMBS) as MLFeatureProviderMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
All models can predict on a specific set of input features.

Some examples using this method:

MLModelMBS.predictionFromFeaturesMT(input as MLFeatureProviderMBS, options as MLPredictionOptionsMBS = nil, byref error as NSErrorMBS) as MLFeatureProviderMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
All models can predict on a specific set of input features.

The work is performed on an extra thread, so this function can yield time to other Xojo threads. And it calles the Working event regularly.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.
If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window.

MLModelMBS.predictionsFromBatch(inputBatch as MLBatchProviderMBS, byref error as NSErrorMBS) as MLBatchProviderMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Predicts output feature values from the given a batch of input feature values.

inputBatch: The batch of feature values the model needs to make its predictions.

Returns a batch provider that represents the model’s predictions for the batch of inputs.

See also:

MLModelMBS.predictionsFromBatch(inputBatch as MLBatchProviderMBS, options as MLPredictionOptionsMBS, byref error as NSErrorMBS) as MLBatchProviderMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Predicts output feature values from the given a batch of input feature values and prediction options.

inputBatch: The batch of feature values the model needs to make its predictions.
options: All the options to be applied to the prediction.

Returns a batch provider that represents the model’s predictions for the batch of inputs.

See also:

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...