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

WindowsML.Evaluate

Evaluates the model and returns result as JSON.

Component Version macOS Windows Linux Server iOS SDK
WindowsML 10.5 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WindowsML.Evaluate"; WinMLRef { ; correlationId } )   More

Parameters

Parameter Description Example Flags
WinMLRef The reference number to the model. $Model
correlationId Optional user-supplied string to connect the output results.
Will be included in JSON for output.
Optional

Result

Returns JSON or error.

Description

Evaluates the model and returns result as JSON.
Returned JSON contains an entry for each output key and in that the values.
We can currently serialize arrays for boolean, float, float16, double, int8, uint8, int16, uint16, int32, uint32, int64 and uint64 data types.

MBS Plugins don't support all possible input/output combinations, so if you need something more, please let us know.

Examples

Evaluate the model:

Set Variable [ $Result ; Value: MBS( "WindowsML.Evaluate"; $$WinMLRef) ]
If [ MBS("ISError") ]
    Show Custom Dialog [ "Failed to evaluate model" ; $Result ]
    Exit Script [ Text Result: $Result ]
Else
        Set Field [ WindowsML::Result ; $Result ]
End If

See also

Example Databases

Blog Entries

This function checks for a license.

Created 26th September 2020, last changed 27th September 2020


WindowsML.Description - WindowsML.List