cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Metrics in AI Core ?

marcus_schiffer
Active Participant
0 Kudos

Hi,

while experimenting with the AI Core service I tried to generate Metrics with the push metrics service.

This always leads to "404" responses. I have a resource group and an execution, but how will I create the metrics for that execution ? In the template for the api call the ID of the execution also has a different format than in my environment.

And finally, how would I post the metrics from inside the python training run ?

Any help appreciated.

Regards

Marcus

KarimM
Advisor
Advisor

Hello Marcus,

The metrics are saved for each training run. So the standard usage is in your python code to import the tracking sdk, and use the methods for logging the metrics. They will automatically be saved for the current execution id.
Via AI Launchpad the metrics are visualized or can be retrieved via AI API.

marcus_schiffer
Active Participant
0 Kudos

Hi,

the 404 error was due to a wrong URL in the AI tutorials Postamn environemnt. with /v2/lm/ ist works naow from Postman. However the python implementation in ai_client package does not have a metrics path / modify method. How would I write the metrics ? Just use a standard web service call ? Or is there another methon in the ai_client sdk ?

Any help appreciated.

Regards

Marcus

Accepted Solutions (1)

Accepted Solutions (1)

Deepak_sahu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Now metrics tutorial is published and avaliable.
Please access via this link: https://developers.sap.com/tutorials/ai-core-metrics.html

Answers (1)

Answers (1)

marcus_schiffer
Active Participant
0 Kudos

Hi Karim,

thanks for the hint. I still cant find the tracking sdk / or methods in the client api sdk. How would that look like in python ?

Any help appreciated.

Regards

Marcus