How do you call an AML endpoint in Python

To call an Azure Machine Learning (AML) endpoint with Python, you can use the requests library. Here’s an example of how to do this:

  • Install the requests library if you haven’t already:
    • Use the following Python code to call the AML endpoint:

    Replace https://your-scoring-uri.azurewebsites.net/score with the actual scoring URI of your AML endpoint and your_api_key with the API key if your endpoint requires authentication Make sure to format the input data according to your model’s requirements. The example above assumes the model expects a list of lists as input data.

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    Connecting to %s

    %d bloggers like this: