DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • AI, ML, and Data Science: Shaping the Future of Automation
  • Recommender Systems Best Practices: Collaborative Filtering
  • Snowflake vs. Databricks: How to Choose the Right Data Platform
  • The Art of Separation in Data Science: Balancing Ego and Objectivity

Trending

  • MySQL to PostgreSQL Database Migration: A Practical Case Study
  • Understanding and Mitigating IP Spoofing Attacks
  • Enhancing Security With ZTNA in Hybrid and Multi-Cloud Deployments
  • A Simple, Convenience Package for the Azure Cosmos DB Go SDK
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. QA for Machine Learning Models With the PDCA Cycle

QA for Machine Learning Models With the PDCA Cycle

Learn how DevOps and AI come together in the PDCA cycle to create a strategy for DevOps-style quality assurance of machine learning and data science projects.

By 
Ajitesh Kumar user avatar
Ajitesh Kumar
·
Aug. 12, 18 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
13.0K Views

Join the DZone community and get the full member experience.

Join For Free

The primary goal of establishing and implementing Quality Assurance (QA) practices for machine learning/data science projects or projects using machine learning models is to achieve consistent and sustained improvements in business processes, making use of underlying ML predictions. This is where the idea of the PDCA cycle (Plan-Do-Check-Act) is applied to establish a repeatable process ensuring that high-quality machine learning (ML)-based solutions are served to the clients in a consistent and sustained manner.

The following diagram represents the details:

QA and Machine learning Projects with PDCA Cycle

PDCA cycle of machine learning projects for QA.

The following represents the details listed in the above diagram.

  • Plan
    • Explore/describe the business problems: In this stage, product managers/business analysts sit with data scientists and discuss the business problem at hand. The outcome of this exercise is a product requirement specification (PRS) document which is handed over to the data science team.
    • Assess whether the solution makes use of ML models: The data science team explores whether the solution needs one or more machine learning models to be built.
    • Set the objectives/goals: Product managers set the overall business objectives and goals to be met as a result of an ML solution being carved out.
    • Identify the metrics (proxy vs. online): Suppose you want to measure how happy are users after visiting a specific web page of the website; the proxy metric could be the time spent by users on that page.
    • Prepare the action plan
  • Do (Implement)
    • Architect/design the solution
    • Train/retrain and test one or more ML models: As part of building models, the following need to be considered especially when improving on the previous models deployed into production:
      • Feature engineering to filter existing features and select new features to improve model performance
      • Update newer ML algorithms
    • Develop and test non-ML solution components
    • Integrate the solution end-to-end
    • Test the overall solution (integration testing)
    • Code review (non-ML, feature generation code)
  • Check (Test/Monitor)
    • Do a canary rollout; adopt A/B testing
    • Monitor proxy metrics vis-a-vis online impact metrics
    • Monitor training serving skew
    • Monitor model fairness attributes (bias/variance)
    • Model stability (numerical stability)
  • Act (Standardize/Continuous Improvement)
    • Deploy the solution/models into production
    • Monitor model overall performance, stability, fairness (bias/variance)
    • Identify areas of improvement – Data/Features
    • Identify areas of improvement – ML Algorithms
    • Identify areas of improvement – Non-ML components

Reference

  • PDCA on Wikipedia
  • PDCA Cycle – ISO 9001

Summary

In this post, you learned about applying the PDCA cycle for managing the quality of machine learning (ML)/data science projects. The idea is to set up QA practices for ML projects. In the next posts, we will dive deeper into different aspects of quality assurance practices.

Machine learning Question answering Data science

Published at DZone with permission of Ajitesh Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • AI, ML, and Data Science: Shaping the Future of Automation
  • Recommender Systems Best Practices: Collaborative Filtering
  • Snowflake vs. Databricks: How to Choose the Right Data Platform
  • The Art of Separation in Data Science: Balancing Ego and Objectivity

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!