Check procedure

Official Content
This documentation is valid for:

Checks the training state of a custom model.

Parameters

Configuration

The following table resumes the configuration properties (access credentials) you must set in order to use this AI task.

  PropertyKey
ProviderType Key
Alibaba -
Amazon -
Baidu -
Google  Service Account JSON
IBM Visual Recognition Key
Microsoft Custom Vision Training Key
SAP -
Tencent -

Sample

After triggering the Train procedure, for example, you can check the training status as follows:

do while True
   &ret = Sleep(60) // wait 60 sec until re-poll
   &State = GeneXusAI.Custom.Check(&model, &provider, &Messages)
   if &State <> GeneXusAI.Custom.State.Training OR &Messages.Count > 0
      exit // break the loop if it is ready, had aborted or raises an error
   endIf
endDo

Notes

  • Calling this task makes sense after you call the Train procedure.
  • Despite that the &State return variable belongs to State domain, it could adopt another string value if the provider you are using introduces a new state.

Scope

Platforms  Web(.NET,.NETCore,Java), SmartDevices(Android,iOS)
Connectivity  Online

Availability

This procedure is available as of GeneXus 16 upgrade 6.

See also