Incomplete code in the sample code showing python SDK application?

Akash Singh 20 Reputation points
2024-04-10T08:54:50.1266667+00:00

Hi!

The sample code shown to create an example workspace at https://learn.microsoft.com/en-us/training/modules/explore-azure-machine-learning-workspace-resources-assets/2-provision is missing definition for ml_client variable. This might be confusing to beginners.

To make it clearer, the code should be complete. Or if the prerequisite is to know that ml_client refers to an azure.ai.ml.MLClient type object, which needs to be created beforehand and referred here, then that should be clearly stated.

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,585 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rakesh Gurram 7,870 Reputation points Microsoft Vendor
    2024-04-10T12:14:02.69+00:00

    Hi Akash Singh,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    We understand from your question that there might be instances where learners might be confusing to some but using ml_client as an instance of azure.ai.ml.MLClient follows standard practices. The code is kept short in the documentation to highlight the main idea: setting up an Azure Machine Learning workspace. It's typical in programming to skip some details, like declaring variables, when showing specific actions.

    Hope we were able to resolve your confusion.

    Please Upvote & Accept Answer so that it would be helpful to community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.