ML UNIT 1 Notes
ML UNIT 1 Notes
1)What is ML?
Machine learning is a subfield of artificial intelligence (AI)
ML is a “Field of study that gives computers the capability to learn
without being explicitly programmed”
Ex: Speech & Image Recognition, Chatbot, Traffic alerts using Google Map,
Google Translation etc
iii)Reinforcements learning :-
Reinforcement learning is a machine learning training method based on
rewarding desired behaviors and/or punishing undesired ones.
Examples:Gaming,Finance sector,manufacturing,Robot Navigation etc
most common reinforcement learning algorithms
Q-learning
SARSA (State-Action-Reward-State-Action)
Deep Q-learning
1. Image Recognition:
Image recognition is one of the most common applications of machine
learning.
It is used to identify objects, persons, places, digital images, etc.
The popular use case of image recognition and face detection
is, Automatic friend tagging suggestion
2. Speech Recognition
While using Google, we get an option of "Search by voice," it comes
under speech recognition, and it's a popular application of machine
learning.
Speech recognition is a process of converting voice instructions into text,
and it is also known as "Speech to text", or "Computer speech
recognition."
Google assistant, Siri, Cortana, and Alexa are using speech recognition
technology to follow the voice instructions.
3. Traffic prediction:
If we want to visit a new place, we take help of Google Maps, which
shows us the correct path with the shortest route and predicts the traffic
conditions.
It predicts the traffic conditions such as whether traffic is cleared, slow-
moving, or heavily congested with the help of two ways:
4. Product recommendations:
Machine learning is widely used by various e-commerce companies such
as Amazon, Flipkart etc., for product recommendation to the user.
6)Why python?
Python is a powerful open source,high level,interpreter,object oriented
programming language.
Python created by Guido van Rossum in 1991.
Python is important due to
i)Python is easy to understand:
Python is the most suitable programming language for this because it is easy to
understand and you can read it for yourself.
ii) Python comes with a large number of libraries:
Many of these inbuilt libraries are for Machine Learning and Artificial
Intelligence, and can easily be applied out of the box.
Some of the libraries are:
scikit-learn for data mining, analysis, and Machine Learning.
Tensorflow, a high-level neural network library.
Pandas, a powerful and versatile library that simplifies the tasks of data
manipulation in Python.
iii) Python allows easy and powerful implementation:
Machine Learning is its easy and powerful implementation.
With other programming languages, coding beginners or students need to
familiarize themselves with the language first before being able to use it
for ML or AI.
It will spend less time writing code and debugging errors on Python than
on Java or C++.
7)Explain scikit-learn?
Definition:
Scikit-learn (Sklearn) is the most useful and robust library for machine learning
in Python. It provides a selection of efficient tools for machine learning and
statistical modelling including classification, regression, clustering and
dimensionality reduction via a consistence interface in Python. This library,
which is largely written in Python, is built upon NumPy, SciPy and Matplotlib.
Supervised learning algorithms are trained using Unsupervised learning algorithms are trained
labeled data. using unlabeled data.
Supervised learning model takes direct feedback to Unsupervised learning model does not take
check if it is predicting correct output or not. any feedback.
Supervised learning model predicts the output. Unsupervised learning model finds the hidden
patterns in data.
In supervised learning, input data is provided to the In unsupervised learning, only input data is
model along with the output. provided to the model.
The goal of supervised learning is to train the model so The goal of unsupervised learning is to find
that it can predict the output when it is given new data. the hidden patterns and useful insights from
the unknown dataset.
Supervised learning needs supervision to train the Unsupervised learning does not need any
model. supervision to train the model.
Supervised learning can be used for those cases where Unsupervised learning can be used for those
we know the input as well as corresponding outputs. cases where we have only input data and no
corresponding output data.
Supervised learning model produces an accurate result. Unsupervised learning model may give less
accurate result as compared to supervised
learning.
Supervised learning is not close to true Artificial Unsupervised learning is more close to the
intelligence as in this, we first train the model for each true Artificial Intelligence as it learns
data, and then only it can predict the correct output. similarly as a child learns daily routine things
by his experiences.