Ai & ML Week-1
Ai & ML Week-1
Fundamentals
Machine learning types
-Machine learning workflow
Machine learning applications
Challenges in ML
Building a model – steps involved
one would have ever come across. As it is evident from the name, it gives the computer
that makes it more similar to humans: The ability to learn. Machine learning is actively
being used today, perhaps in many more places than one would expect.
Machine learning types
1. Supervised Machine Learning
As its name suggests, supervised machine learning is based on supervision. It
means in the supervised learning technique, we train the machines using the
"labeled" dataset, and based on the training, the machine predicts the output.
Supervised learning works on labeled data.
Each input data has a corresponding labeled output. The goal of supervised
machine learning is to learn a mapping from the input to the output. The input
data is called attributes, features or predictors.
This output variable is also called response variable or target variable.
For example, the problem of building a utility for predicting the selling price of
the car. The dataset is shown below:
From the given dataset, the machine learning algorithm learns the mapping from input
variables to output variable. This learning is represented in the form of a model. When a
new instance is given to the model as shown below, it can predict its output value.
For example, an online retailer will have data about all items that the customers purchased.
Unsupervised learning algorithms can be applied on this data to group customers
based on their buying patterns.
Grouping new articles based on topics like sports, politics, business etc. is another example
ofunsupervised learning.
This task of discovering inherent clusters or groups in the data is known as Clustering
3. Reinforcement Learning
Reinforcement learning works on a feedback-based process, in which an AI agent (A
software component) automatically explore its surrounding by hitting & trail, taking
action, learning from experiences, and improving its performance.
Once deployed, the model makes predictions on new data ; these predictions/insights are
used to take business decisions
Deployment − At last, we need to deploy the model. This step involves applying and
migrating the model to business operations for their use.
4. Challenges in ML
Inadequate Training Data
Poor quality of data
Monitoring and maintenance
Getting bad recommendations
Lack of skilled resources
Process Complexity of Machine Learning
Data Bias
Slow implementations and results
This is a good time to visualize your data and check if there are correlations between the
different characteristics that we obtained.
You must also separate the data into two groups: one for training and the other for model
evaluation which can be divided approximately in a ratio of 80/20 but it can vary
depending on the case and the volume of data we have.
At this stage, you can also pre-process your data by normalizing, eliminating duplicates,
and making error corrections.
you will use algorithms of classification, prediction, linear regression, clustering, i.e. k-
means or K-Nearest Neighbor, Deep Learning, i.e. Neural Networks, Bayesian, etc.
There are various models to be used depending on the data you are going to process
such as images, sound, text, and numerical values.
In the following table, we will see some models and their applications that you can
apply in your projects:
Model Applications
K-means Segmentation
Step 5: Evaluation
You will have to check the machine created against your evaluation data set of your
already trained model.
If the accuracy is less than or equal to 50%, that model will not be useful.
If you reach 90% or more, you can have good confidence in the results that the model
gives you.
Machine Learning
Pipeline
o Data engineering
o Machine Learning
o Deployment
What is Data Science?
How Data Science works?
Data Science uses
Pipeline
Machine Learning
Deployment
The deployment of machine learning models (or pipelines) is the process of making
models available in production where web applications, enterprise software (ERPs) and
APIs can consume the trained model by providing new data points, and get the
predictions.
Data engineering
Data engineering is the process of designing and building systems that
let people collect and analyze raw data from multiple sources and
formats.
common format