Checks the training state of a custom model.
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 |
- |
After triggering the GeneXus Cognitive API - 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
This procedure is available as of GeneXus 16 upgrade 6.