Designing a machine learning system is an iterative process. There are generally four main components of the process: project setup, data pipeline, modeling (selecting, training, and debugging your model), and serving (testing, deploying, maintaining).
Designing a machine learning system is an iterative process. There are generally four main components of the process: project setup, data pipeline, modeling (selecting, training, and debugging your model), and serving (testing, deploying, maintaining).
Batch Prediction
1.
Periodical e.g. hourly, weekly, etc.
2) Processing accumulated data when you don’t need immediate results (e.g. recommendation systems).
3) High throughput.
4) Finite: need to know how many predictions to generate
,
Cloud Computing
1.
Done on cloud.
2) Need network connections for speedy data transfer.
3) E.g., Most queries to Alexa, Siri, Google Assistant
,
Data
1.
Feature expectations are captured in a schema– ranges of the feature values well captured to avoid any un-expected value, which might result in garbage response e.g. human age/height have expected value range, it can’t be very large e.g. age value 150+, hight – 10 feet, etc.
2) All features are beneficial– features added in the system should hav.
,
How a machine learning algorithm works?
In Simple Words, When we fed the Training Data to Machine Learning Algorithm, this algorithm will produce a mathematical model and with the help of the mathematical model, the machine will make a prediction and take a decision without being explicitly programmed.
,
How do you train a machine learning model?
Data Collection:
- Gather relevant and representative data for training and evaluation
3.
Data Preprocessing:Clean, transform, and normalize the data to make it suitable for training. 4.
Model Selection:Choose the appropriate machine learning algorithm or model architecture. 5.
Training:
Train the selected model using the prepared data. 6.
,
Infrastructure
1.
Training is reproducible-training twice on the same data should produce two identical models.
Generally, there might be some variations based on the precision of the system/infra used.
But, there should not be any major difference.
2) Model specs are unit tested-It is important to unit test model algorithm correctness and model API service throu.
,
Introduction
As ML applications are maturing over time and becoming an indispensable component of industries for making faster and accurate decisions for critical and high-value transactions.
For example,.
1) Recommendation system to increase click-through rate for e-commerce.
2) Increasing engagement time users for social media apps.
3) Applications in the medi.
,
Machine Learning System Design
System design for machine learning refers to the process of designing the architecture and infrastructure necessary to support the development and deployment of machine learning models.
It involves designing the overall system that incorporates data collection, preprocessing, model training, evaluation, and inference.
The process of defining an int.
,
Model
1.
Model specs are reviewed and submitted– proper versioning of the model learning code is needed for faster re-training.
2) Offline and online metrics correlate– model metrics (log loss, mape, mse) should well correlated with the objective of application e.g. revenue/cost/time.
3) All hyperparameters have been tuned– hyperparameters, such as learn.
,
Monitoring
1.
Dependency changes result in notification-any changes in the downstream inputs of the ML system should be immediately notified to quickly check for any ML performance deterioration.
2) Data invariants hold for inputs-input data quality and distribution should remain statistically constant, and if any significant data drift is observed, the model.
,
Online Prediction
1.
As soon as requests come.
2) When predictions are needed as soon as data sample is generated e.g., fraud detection.
3) Low latency.
4) Can be infinite But, in some cases based on the business requirements, prediction can be served in a hybrid way- batch & online.
Online prediction is the default, but common queries are precomputed and stored e.g., .
,
What is system design for machine learning?
System design for machine learning refers to the process of designing the architecture and infrastructure necessary to support the development and deployment of machine learning models.
It involves designing the overall system that incorporates data collection, preprocessing, model training, evaluation, and inference.
,
What will I learn in machine learning?
Through a mixture of hands-on guided investigations and design projects, students will learn to design systems of machine learning that create lasting value within their human contexts and environments.
Any questions.
How can I contact the teaching team? .