Types of ML
Types of ML
Key Points:
Supervised learning involves training a machine from labeled data.
Labeled data consists of examples with the correct answer or
classification.
The machine learns the relationship between inputs (fruit images)
and outputs (fruit labels).
The trained machine can then make predictions on new, unlabeled
data.
Example:
Let’s say you have a fruit basket that you want to identify. The
machine would first analyze the image to extract features such as its
shape, color, and texture. Then, it would compare these features to the
features of the fruits it has already learned about. If the new image’s
features are most similar to those of an apple, the machine would predict
that the fruit is an apple.
For instance, suppose you are given a basket filled with different kinds of
fruits. Now the first step is to train the machine with all the different fruits
one by one like this:
Now suppose after training the data, you have given a new separate fruit,
say Banana from the basket, and asked to identify it.
Since the machine has already learned the things from previous data and
this time has to use it wisely. It will first classify the fruit with its shape and
color and would confirm the fruit name as BANANA and put it in the
Banana category. Thus the machine learns the things from training
data(basket containing fruits) and then applies the knowledge to test
data(new fruit).
Supervised learning deals with or learns with “labeled” data. This implies
that some data is already tagged with the correct answer.
1- Regression
Logistic Regression
Decision Trees
Random Forests
Naive Baye
You can use unsupervised learning to examine the animal data that has
been gathered and distinguish between several groups according to the
traits and actions of the animals. These groupings might correspond to
various animal species, providing you to categorize the creatures without
depending on labels that already exist.
Key Points
Unsupervised learning allows the model to discover patterns and
relationships in unlabeled data.
Clustering algorithms group similar data points together based on
their inherent characteristics.
Feature extraction captures essential information from the data,
enabling the model to make meaningful distinctions.
Label association assigns categories to the clusters based on the
extracted patterns and characteristics.
Example
For instance, suppose it is given an image having both dogs and cats
which it has never seen.
Thus the machine has no idea about the features of dogs and cats so we
can’t categorize it as ‘dogs and cats ‘. But it can categorize them
according to their similarities, patterns, and differences, i.e., we can easily
categorize the above picture into two parts. The first may contain all pics
having dogs in them and the second part may contain all pics
having cats in them. Here you didn’t learn anything before, which means
no training data or examples.
Clustering
1. Exclusive (partitioning)
2. Agglomerative
3. Overlapping
4. Probabilistic
Clustering Types:-
1. Hierarchical clustering
2. K-means clustering
Apriori Algorithm
Eclat Algorithm
FP-Growth Algorithm
Application of Unsupervised learning
Supervised Unsupervised
Parameters machine learning machine learning
Computational Computationally
Simpler method
Complexity complex
Uses real-time
Uses offline analysis
Data Analysis analysis of data
It is not possible to
It is possible to learn
learn larger and more
larger and more
complex models than
complex models with
with supervised
unsupervised learning.
Complex model learning.
Unsupervised learning
supervised learning
does not need any
needs supervision to
supervision to train
train the model.
Supervision the model.
Conclusion
Supervised and unsupervised learning are two powerful tools that can be
used to solve a wide variety of problems. Supervised learning is well-
suited for tasks where the desired output is known, while unsupervised
learning is well-suited for tasks where the desired output is unknown.