avatarNaina Chaturvedi

Summary

The provided content introduces a comprehensive series on Machine Learning (ML) System Design, offering insights into the basics, data pipeline construction, model building, training, and deployment, along with a plethora of resources for further learning in ML, system design, and related fields.

Abstract

The web content heralds the commencement of the "ML System Design Case Studies Series," aimed at elucidating the foundational aspects of designing ML systems. It emphasizes the importance of understanding problem statements, project goals, and constraints, as well as the significance of data collection, cleaning, and bias mitigation. The article outlines the steps for building and training ML models, including model selection, hyperparameter tuning, and the necessity of validating and serving the model in production. The content also serves as a gateway to a wealth of educational resources, including detailed case studies, a tech newsletter, and a variety of projects and series on SQL, data structures, algorithms, system design, Data Science, ML, Data Engineering, MLOps, and Deep Learning. The author, Naina Chaturvedi, invites readers to subscribe to a YouTube channel and newsletter for continued learning and updates on the latest projects and coding exercises.

Opinions

  • The author believes in the importance of a structured approach to ML system design, providing a template for consistency and clarity.
  • There is a strong emphasis on the practical application of knowledge through projects and case studies, suggesting a hands-on approach to learning.
  • The author values the community aspect of learning, encouraging subscription to a newsletter and YouTube channel for shared growth and knowledge exchange.
  • The content reflects a commitment to comprehensive coverage of technical topics, with a focus on empowering readers with the tools and knowledge necessary for success in the tech industry.
  • The mention of a cost-effective AI service recommendation indicates the author's interest in democratizing access to advanced technology resources.

Day 1 of ML System Design Case Studies Series : ML System Design Basics

Pic copyright and credits : Naina Chaturvedi

Hello peeps! Welcome to Day 1 of ML System Design Case Studies Series. We have successfully finished System Design Case Studies Series.

Pre-requisite to ML System Design Series —

11 Most important concepts of System Design

Complete System Design Case Studies

Complete Data Science and ML with projects Series

Projects Videos —

All the projects, data structures, SQL, algorithms, system design, Data Science and ML , Data Analytics, Data Engineering, , Implemented Data Science and ML projects, Implemented Data Engineering Projects, Implemented Deep Learning Projects, Implemented Machine Learning Ops Projects, Implemented Time Series Analysis and Forecasting Projects, Implemented Applied Machine Learning Projects, Implemented Tensorflow and Keras Projects, Implemented PyTorch Projects, Implemented Scikit Learn Projects, Implemented Big Data Projects, Implemented Cloud Machine Learning Projects, Implemented Neural Networks Projects, Implemented OpenCV Projects,Complete ML Research Papers Summarized, Implemented Data Analytics projects, Implemented Data Visualization Projects, Implemented Data Mining Projects, Implemented Natural Leaning Processing Projects, MLOps and Deep Learning, Applied Machine Learning with Projects Series, PyTorch with Projects Series, Tensorflow and Keras with Projects Series, Scikit Learn Series with Projects, Time Series Analysis and Forecasting with Projects Series, ML System Design Case Studies Series videos will be published on our youtube channel ( just launched).

Subscribe today!

Tech Newsletter —

If you are interested, you can join my newsletter through which I send tech interview tips, techniques, patterns, hacks — Software Development, ML, Data Science, Startups and Technology projects to more than 30K readers. You can subscribe to Tech Brew :

System Design Case Studies — In Depth

Design Instagram

Design Netflix

Design Reddit

Design Amazon

Design Messenger App

Design Twitter

Design URL Shortener

Design Dropbox

Design Youtube

Design API Rate Limiter

Design Web Crawler

Design Amazon Prime Video

Design Facebook’s Newsfeed

Design Yelp

Design Uber

Design Tinder

Design Tiktok

Design Whatsapp

Most Popular System Design Questions

Mega Compilation : Solved System Design Case studies

In this post we will be discussing ML System Design as follows —

ML System Design — basics

Template that you should use for ML System Design

Most popular ML System Design Questions

ML System Design Case Studies in detail

Let’s start with ML System Design Basics ( complete pre-requisites above before jumping to this section)

First things first. What is ML System?

Pic credits : DSML

ML System is all about 4 things —

  1. ML project requirement analysis
  2. Building Data Pipeline
  3. Building the model and train
  4. Serve the model

Let’s talk about each part in detail -

ML project requirement analysis

First understand the problem statement in depth and project that solves that problem. Ask questions!

This consists of 3 steps —

  1. Establish a Goal — Before starting anything, set a goal. To put it simply, ask — What is the end result?
  2. Constraints — What are some of the project and performance constraints? Project constraints can be space and deployment timeline, available resources, domain knowledge etc. Performance constraints can be — What performance metrics ( accuracy, false positives etc), speed etc are you taking into consideration?
  3. Evaluation — What are parameters based on which you want to evaluate your system?

Building Data Pipeline

Pic credits : Qlik

This consists of 3 steps —

  1. Data Collection — Do you have sufficient data or is the data available? Is it labeled? The data can structured, semi structured and unstructured as well as can be in different formats.
  2. Data Cleaning and Preprocessing — It is the process of figuring out incomplete, missing, incorrect and inaccurate records in the data and then fixing/correcting them.

It involves —

Removal of unwanted and invalid information

Fixing issues of unknown missing values

Fixing problems with mislabeled features, classes

Handling the outliers

It ensures —

The data is valid and up to date.

Data doesn’t contain any duplicates or missing values

Data doesn’t contain any numerical outliers

It helps define valid data labels for the data which is categorical in nature.

3. Biases : Data that you have collected can be biased. How do you deal with biases?

Build the model and train

It consists of 2 steps —

  1. Model Selection — There are many machine learning models that you can choose from. The process of selecting the best machine learning model for your data is called as Model Selection. Model that you have selected should not underfit or overfit your data. We will see Model Selection in detail in the next few posts.
  2. Train the model — In layman’s terms, once you have selected the best model, by training the model on the data that you have is about extracting the patterns from the data and then evaluating the patterns to predict the results.
  3. Hyperparameter Tuning — Hyperparameters are those tunable parameters which can directly affect how well a model trains and are set before the learning process begins.

Examples of hyper parameters are —

  • Number of Epochs
  • Momentum
  • Regularization constant
  • Learning Rate
  • No of branches
  • No of clusters

For your ML model, in order to achieve maximal performance, it is very important to understand how to optimize the hyperparameters. The success of a ML project is crucially dependent on the choice of good hyperparameters.

Serve the model in the production

Pic credits : Canonical

In simple terms, it means hosting the machine learning model either on the on premise or cloud and make their functionalities available via API’s. A model is deployed as a web service which other services can communicate with.

That’s it for now. Day 2 : Coming soon!

In the next part we will see template that you should use for ML System Design.

Read More —

Day 1 : SQL Basics and Kick start of Advanced SQL Series

Day 2 : SQL Basics, Query Structure, Built In functions Conditions

Day 3 : Most Important Commands, Joins and Filters

Day 4 : Set Theory Operations, Stored Procedures and CASE statements in SQL

Day 5 : Wildcards, Aggregation and Sequences in SQL

Day 6 : Subqueries, Group by, order by and Having clauses in SQL and Analytical Functions

Day 7 : Window Functions, Grouping Sets and Constraints in SQL

Day 8 : BigQuery Basics, SELECT, FROM, WHERE and Date and Extract in BigQuery

Day 9 : Common Expression Table, UNNEST Clause, SQL vs NoSQL Databases

Day 10 : Triggers, Pivot and Cursors in SQL

Day 11 : Views, Indexes and Auto Increment in SQL

Day 12 : Query optimizations, Performance tuning in SQL

Day 13 : Introduction to MySQL, PostgreSQL and Mongo DB, Comparison between MySQL and PostgreSQL and Mongo DB, Introduction to SQL and NoSQL Databases

Day 14 : MySQL in Depth

Day 15 : PostgreSQL inDepth

Anyways, For Day 15 of 15 days of Advanced SQL, we will cover —

PostgreSQL inDepth

Github for Advanced SQL that you can follow —

All the projects, data structures, algorithms, system design, Data Science and ML, Data Engineering, MLOps and Deep Learning videos will be published on our youtube channel ( just launched).

Subscribe today!

System Design Case Studies — In Depth

Design Instagram

Design Messenger App

Design Twitter

Design URL Shortener

Design Dropbox

Design Youtube

Design API Rate Limiter

Design Web Crawler

Design Facebook’s Newsfeed

Design Yelp

Design Uber

Design Tinder

Design Tiktok

Design Whatsapp

Most Popular System Design Questions

Mega Compilation : Solved System Design Case studies

Complete Data Structures and Algorithm Series

Complexity Analysis

Backtracking

Sliding Window

Greedy Technique

Two pointer Technique

Arrays

Linked List

Strings

Stack

Queues

Hash Table/Hashing

Binary Search

1- D Dynamic Programming

Divide and Conquer Technique

Recursion

Github —

Complete System Design Series.

1. System design basics

2. Horizontal and vertical scaling

3. Load balancing and Message queues

4. High level design and low level design, Consistent Hashing, Monolithic and Microservices architecture

5. Caching, Indexing, Proxies

6. Networking, How Browsers work, Content Network Delivery ( CDN)

7. Database Sharding, CAP Theorem, Database schema Design

8. Concurrency, API, Components + OOP + Abstraction

9. Estimation and Planning, Performance

10. Map Reduce, Patterns and Microservices

11. SQL vs NoSQL and Cloud

12. Most Popular System Design Questions

Github —

Subscribe/ Follow, Like/Clap and Stay Tuned!!

Some of the other best Series —

60 days of Data Science and ML Series with projects

30 Days of Natural Language Processing ( NLP) Series

30 days of Machine Learning Ops

30 days of Data Structures and Algorithms and System Design Simplified

60 Days of Deep Learning with Projects Series

30 days of Data Engineering with projects Series

Data Science and Machine Learning Research ( papers) Simplified **

100 days : Your Data Science and Machine Learning Degree Series with projects

23 Data Science Techniques You Should Know

Tech Interview Series — Curated List of coding questions

Complete System Design with most popular Questions Series

Complete Data Visualization and Pre-processing Series with projects

Complete Python Series with Projects

Complete Advanced Python Series with Projects

Kaggle Best Notebooks that will teach you the most

Complete Developers Guide to Git

Exceptional Github Repos — Part 1

Exceptional Github Repos — Part 2

All the Data Science and Machine Learning Resources

210 Machine Learning Projects

Tech Newsletter —

If you are interested, you can join my newsletter through which I send tech interview tips, techniques, patterns, hacks — Software Development, ML, Data Science, Startups and Technology projects to more than 30K readers. You can subscribe to Tech Brew :

For Python Projects —

For complete 60 days of Data Science and ML : Day 1 — Day 60 : Quick Recap of 60 days of Data Science and ML

Follow for more updates. Stay tuned and keep coding!

For other projects, tune to —

Build Machine Learning Pipelines( With Code)

Recurrent Neural Network with Keras

Clustering Geolocation Data in Python using DBSCAN and K-Means

Facial Expression Recognition using Keras

Hyperparameter Tuning with Keras Tuner

Custom Layers in Keras

Machine Learning
Data Science
Tech
Programming
Artificial Intelligence
Recommended from ReadMedium
avatarSantosh P.
System design Of Dropbox

14 min read