WindowsML.Evaluate
------------------

Evaluates the model and returns result as JSON.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsML](component_WindowsML.md) | [10.5](newinversion105.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WindowsML.Evaluate"; WinMLRef { ; correlationId } ) 

**MBS**( **"WindowsML.Evaluate";** /\* Evaluates the model and returns result as JSON. \*/  
**$WinMLRef**; /\* The reference number to the model.e.g. $Model \*/   
**$correlationId**) /\* Optional; Optional user-supplied string to connect the output results.  
Will be included in JSON for output. \*/ 

### 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

- [IsError](IsError.md)
- [WindowsML.Release](WindowsMLRelease.md)

### Example Databases

- [Win Only/WindowsML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WindowsML.shtml#5ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 10.5](https://www.mbsplugins.de/archive/2020-11-23/New_in_MBS_FileMaker_Plugin_10/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 27](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

This function checks for a license.

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

  
[WindowsML.Description](WindowsMLDescription.md) - [WindowsML.List](WindowsMLList.md)

[HTML Version](WindowsMLEvaluate.shtml)