ML Answers
ML Answers
What is Machine Learning and explain the different types of Machine Learning?
Machine learning is a branch of artificial intelligence that enables computers to learn from data and
improve their performance without being explicitly programmed .
Instead of writing rigid rules , Ml algorithms find patterns from data and make predictions or
decisions .
Its used in many areas like recommendations (stock buying , Netflix ) , self driving cars , speech
recognition and fraud detection.
Supervised learning : here the machine learning model is trained on a labelled dataset ,
whrere the data set has both inputs and output labels , the model gets trained on this data
and predicts outputs for unseen inputs . there are 2 types of supervised machine learning
algorithms
o Classification : it deals with categorical data which is used for decision making and
gives output in binary , like yes or no , true or false . example : email spam or not .
o Regression : it deals with continuous data which represent numerical values and is
used to predict a dependant variable using the independent variable . example :
predicting stock price /
unsupervised learning : it is a type of machine learning algorithm which discovers patterns
and relationships from an unlabeled dataset , unlike supervised machine learning
unsupervised learning doesn’t have labelled inputs or outputs . it is mainly used for tasks
such as clustering or dimensionality reduction .
o clustering is the process of grouping data items based on their similarity
o dimensionality reduction is a method of preserving data with lower features while
still holding the original meaningful properties
semi supervised learning : semi supervised learning is a machine learning algorithm that
works between supervised and unsupervised learning where the model is trained on a
labelled and unlabeled data .
its particularly useful when obtaining labeled data is costly , time consuming . example : a
language translation model that has labelled and unlabeled data for a sentence , this allows
model to predict more accurate results .
Reinforcement learning : In reinforcement learning, an agent learns by interacting with an
environment, receiving feedback in the form of rewards or penalties based on its actions.
The goal is to develop a strategy or policy that maximizes cumulative reward over time.
example : it can be used in NLP in dialogue systems and chatbots
How is unsupervised learning different from supervised learning with a practical example?
Unsupervised learning and supervised learning are two major categories of machine learning, and
they differ primarily in how the data is used for training.
Supervised learning : here the machine learning model is trained on a labelled dataset ,
whrere the data set has both inputs and output labels , the model gets trained on this data
and predicts outputs for unseen inputs . there are 2 types of supervised machine learning
algorithms
unsupervised learning : it is a type of machine learning algorithm which discovers patterns
and relationships from an unlabeled dataset , unlike supervised machine learning
unsupervised learning doesn’t have labelled inputs or outputs . it is mainly used for tasks
such as clustering or dimensionality reduction .
Practical example :
In summary, supervised learning is useful when you know what you're looking for (like predicting
spam), while unsupervised learning helps you uncover hidden structures (like discovering customer
segments).