Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Updates a model.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CoreML 10.0 Yes No Yes, macOS only No Yes
MBS( "CoreML.Update"; InputPath; OutputPath; trainingData )   More


Parameter Description Example value
InputPath The input path to the model file. "/test.mlmodelc"
OutputPath The output path to the model file. "/output.mlmodelc"
trainingData The new training data as JSON array.


Returns OK or error.


Updates a model.
Update a machine learning model on a user’s device. Pass in path to existing model and path for new model.
Training data is a JSON array. Each entry is an object with the input and output keys. Each key has a value, either a number or text, array or image path. The image is defined with a native file path and format is automatically adjusted.
Look in CoreML.Description for the inputDescriptionsByName, outputDescriptionsByName and trainingInputDescriptionsByName. The constrains may tell you what image sizes to use.


Update a model:

MBS( "CoreML.Update"; "/Users/cs/Desktop/UpdatableDrawingClassifier.mlmodelc"; "/Users/cs/Desktop/UpdatableDrawingClassifier2.mlmodelc"; "[{\"drawing\": \"/Users/cs/Desktop/mbslogo.png\", \"label\": \"car\"}]" )

See also

Blog Entries

Release notes

Created 16th December 2019, last changed 8th June 2020

CoreML.SetUsesCPUOnly   -   DNSLookup.Address

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins