Scrumban Product Management

How to Visually Train ML Models with Azure

Tips for non-technical product managers on training and evaluating machine learning models using Azure ML Designer.

Leo Leon
6 min readJun 6, 2024

Are you transitioning from a traditional product management role to a more technical or data-focused position? One key area you’ll need to master is training and evaluating machine learning models. In this article, I’ll walk you through the essential steps of using Azure ML Designer to build a machine learning pipeline. This guide will help you harness the power of Azure’s drag-and-drop interface to create, train, and evaluate models effectively.

1. Navigate to Azure ML Designer

First, navigate to Azure Machine Learning Studio and access your workspace. Familiarize yourself with the components that make up the training pipeline. This foundational step ensures you understand the environment you’ll be working in.

2. Check Compute Instances

Next, check the compute instances available in your workspace. Ensure the compute instance is turned on, or create a new one if necessary. Use a compute instance of size standard ds-12 V2 or higher for optimal performance. This setup is crucial for handling the processing needs of your machine-learning tasks.

3. Create a New Pipeline

Go to the designer tab and select the new pipeline option. This action opens a canvas and a fly-out pane with data and component tabs. Creating a new pipeline is the first step in building your machine-learning model.

4. Add Data Set

Choose the data tab and drag the data set onto the canvas. This step creates a component on the canvas that emits a data output, providing the raw data needed for model training.

5. Clean Missing Data

Use the search box to find the ‘Clean Missing Data’ component, drag it onto the canvas, and configure it to clean specific columns. Change the cleaning mode to ‘Replace with mean’ for numeric columns. Cleaning your data ensures that your model performs accurately and efficiently.

6. Split the Data

Add a ‘Split Data’ component to the canvas and configure it for a simple train-test split (70% training, 30% test). Use a randomized split with a specified random seed for consistency. Splitting your data correctly is essential for training and testing your model.

7. Select an Algorithm

Navigate to the machine learning algorithms and choose the one that best fits your problem. Drag the component onto the canvas. Selecting the right algorithm is key to building an effective model.

8. Train the Model

Add a ‘Train Model’ component and wire it to the algorithm and the training data set. Configure hyperparameters for the decision forest algorithm. Training your model involves fine-tuning it to ensure it performs well on your specific data set.

9. Set the Label Column

Double-click the ‘Train Model’ component and set the label column. Enable model explanation for insights into the model’s decision process. Setting the label column correctly helps your model understand what it is predicting.

10. Score the Model

Add a ‘Score Model’ component to the canvas, connecting the trained model and the test data set. This generates a scored data set output. Scoring your model allows you to see how it performs on unseen data.

11. Evaluate the Model

Add an ‘Evaluate Model’ component to build high-level summary metrics from the scored data set. Validate the pipeline to ensure there are no errors before running it. Evaluating your model provides insights into its accuracy and performance.

12. Submit the Pipeline

Choose your compute type and name the pipeline. Create a new experiment and submit the pipeline to kick off the job. Submitting your pipeline runs the entire process, from training to evaluation.

13. Analyze Results

Right-click on the ‘Score Model’ component to preview data and evaluate model performance. Look at the scored data set and various metrics to understand the model’s performance. Analyzing results helps you identify areas for improvement.

14. Adjust Thresholds

Use the evaluation results to adjust the threshold for making true vs. false predictions. This step helps optimize metrics like recall, precision, and F1 score. Adjusting thresholds ensures your model makes the most accurate predictions.

15. Prepare for Next Steps

Prepare to convert the training pipeline into something other applications can integrate with. Look forward to further videos for more advanced functionalities. Preparing for the next steps ensures you can integrate your model seamlessly into other applications.

How have you integrated machine learning models into your product management processes? Share your experiences and tips in the comments below to help fellow product managers on their journey.

If you found this article useful, please clap for it. Clapping helps the Medium algorithm display this content to a wider audience, contributing to our professional community. Let’s help each other grow in our careers!

PS: AI and Analytics for Product Managers: Leveraging Data for Business Impact

Imagine navigating a complex maze with a sophisticated tool that provides direction and predicts the best path to take. Kumar Vishwesh's “AI and Analytics for Product Managers: Leveraging Data for Business Impact” equips product managers with the tools and knowledge to harness AI and analytics effectively, transforming data into actionable business insights.

The Essence

1. Understanding AI and Analytics Fundamentals: The book begins with an accessible introduction to the core concepts of AI and analytics. Vishwesh demystifies complex topics, making them understandable for non-technical product managers.

2. Integrating AI into Product Strategy: Vishwesh provides a detailed guide on seamlessly integrating AI into product strategy. This includes identifying opportunities where AI can add value and designing AI-driven features that enhance product offerings.

3. Data-Driven Decision Making: The book emphasizes the importance of making decisions based on data rather than intuition. Vishwesh outlines practical steps for collecting, analyzing, and leveraging data to inform product decisions.

4. Building and Leading AI Teams: A significant portion of the book is dedicated to building and leading teams capable of executing AI projects. Vishwesh offers insights into hiring talent, fostering a collaborative environment, and aligning team efforts with business goals.

5. Ethical Considerations in AI: Vishwesh addresses the ethical implications of AI, ensuring that product managers are aware of potential biases and the importance of ethical AI practices. This section helps in building trust and maintaining transparency with users.

The Action Plan

1. Learn AI and Analytics Basics: Start with the fundamentals of AI and analytics. Focus on understanding key concepts and terminology to communicate effectively with technical teams.

2. Identify AI Opportunities: Evaluate your product strategy to identify areas where AI can add significant value. Consider customer pain points and how AI-driven solutions can address them.

3. Collect and Analyze Data: Implement robust data collection processes. Use analytical tools to transform raw data into meaningful insights that guide your product decisions.

4. Build a Strong AI Team: Hire skilled professionals who complement your existing team. Foster a culture of collaboration and continuous learning to keep up with advancements in AI technology.

5. Implement Ethical AI Practices: Ensure your AI implementations are free from biases and respect user privacy. Establish guidelines for ethical AI use and regularly review practices to maintain transparency and trust.

Blind Spot

One potential blind spot is the rapid pace of AI advancements, making it challenging to keep up with the latest technologies and methodologies. While the book provides a solid foundation, continuous learning and staying updated with industry trends are crucial for long-term success.

Connected Knowledge

For further reading, consider “Lean AI: How Innovative Startups Use Artificial Intelligence to Grow” by Lomit Patel. This book complements Vishwesh’s by offering a more startup-focused perspective on implementing AI to drive growth. It provides practical advice on leveraging AI for rapid scaling and operational efficiency.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Leo Leon
Leo Leon

Written by Leo Leon

Technical Product Manager | Follow for Biteable Insights

No responses yet

Write a response