Step 2 – Training the ML model from AL

In the Visual Studio Code project you cloned earlier, there is a table called Rest. ML Forecast Setup with two additional functions, getMLUri and getMLKey.

Insert your URI and a key (copied from the previous step) into these functions:

Open the Train Rest. Forecast ML codeunit and find the Train() function. Let's investigate how it works. The defined variables are as follows:

From the preceding screenshot, we observe the following:

  • ML Prediction Management: This is the main codeunit, which has functions ...

Get Mastering Microsoft Dynamics 365 Business Central now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.