Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Opens a compiled model file.

Component Version macOS Windows Linux Server iOS SDK
CoreML 7.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "CoreML.OpenModel"; Path )   More


Parameter Description Example
Path The path to the model file. "/test.mlmodelc"


Returns OK or error.


Opens a compiled model file.
If the model is not compiled (*.mlmodel), you can compile it with CoreML.CompileModel.
Returns error message if there is a problem.

See also Vision.ClassifyImage to use Vision framework from Apple to classify images with Apple's model.


Load Model:

Set Variable [ $$ML ; Value: MBS("CoreML.OpenModel"; CoreML::Model Path) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to load" ; $$ML ]
    Set Variable [ $$ML ; Value: "" ]
    Set Field [ CoreML::Model Description ; MBS("CoreML.Description"; $$ML) ]
End If

See also

Example Databases

Blog Entries

This function checks for a license.

Created 16th September 2017, last changed 17th October 2019

CoreML.List - CoreML.PredictionFromFeatures