Skip to content
Advertisement

How to edit endpoint settings on Unified AI Platform using Python?

I have successfully created an endpoint on Unified Cloud AI Platform and have deployed two Models to it – Model A and Model B with 20% and 80% of the traffic respectively. Now, on the Cloud Console (the UI) I get an option to Edit Settings and change the traffic split to 30% and 70% respectively and the Models are deployed. However I am unable to figure out how to do this using the Python Client API.

The documentation provided over here is inadequate to understand how we could do this. Any help will be appreciated.

Advertisement

Answer

The documentation for AI Platform Unified does not yet have an example on how to edit the traffic using python. Here is the code for that:

NOTE: Don’t forget to update the values for end_point (endpoint ID),project (project ID), model_id_1 and model_id_2 before running the code.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement