AI(Part-II)
AI(Part-II)
AI(Part-II)
developing models and algorithms that let computers learn from data and
improve from previous experience without being explicitly programmed for
every task. In simple words, ML teaches the systems to think and
understand like humans by learning from the data.
There are two main categories of supervised learning that are mentioned
below:
• Classification
• Regression
Classification
Classification deals with predicting categorical target variables, which
represent discrete classes or labels. For instance, classifying emails as spam
or not spam, or predicting whether a patient has a high risk of heart disease.
Classification algorithms learn to map the input features to one of the
predefined classes.
• Logistic Regression
• Support Vector Machine
• Random Forest
• Decision Tree
• K-Nearest Neighbors (KNN)
• Naive Bayes
Regression
Regression, on the other hand, deals with predicting continuous target
variables, which represent numerical values. For example, predicting the price
of a house based on its size, location, and amenities, or forecasting the sales
of a product. Regression algorithms learn to map the input features to a
continuous numerical value.
• Linear Regression
• Polynomial Regression
• Ridge Regression
• Lasso Regression
• Decision tree
• Random Forest
Advantages of Supervised Machine Learning
Example: Consider that you have a dataset that contains information about
the purchases you made from the shop. Through clustering, the algorithm can
group the same purchasing behaviour among you and other customers, which
reveals potential customers without predefined labels. This type of information
can help businesses get target customers as well as identify outliers.
There are two main categories of unsupervised learning that are mentioned
below:
• Clustering
• Association
Clustering
Clustering is the process of grouping data points into clusters based on their
similarity. This technique is useful for identifying patterns and relationships in
data without the need for labelled examples.
Association
Association rule learning is a technique for discovering relationships between
items in a dataset. It identifies rules that indicate the presence of one item
implies the presence of another item with a specific probability.
• Apriori Algorithm
• Eclat
• FP-growth Algorithm
3. Semi-Supervised Learning
Semi-Supervised learning is a machine learning algorithm that works between
the supervised and unsupervised learning so it uses both labelled and
unlabelled data. It’s particularly useful when obtaining labelled data is costly,
time-consuming, or resource-intensive.
We use these techniques when we are dealing with data that is a little bit
labelled and the rest large portion of it is unlabelled. We can use the
unsupervised techniques to predict labels and then feed these labels to
supervised techniques. This technique is mostly applicable in the case of
image data sets where usually all images are not labelled.
Example: Consider that you are training an AI agent to play a game like
chess. The agent explores different moves and receives positive or negative
feedback based on the outcome.
Positive reinforcement
Negative reinforcement
Computational
Simpler method Computationally complex
Complexity
Model We can test our model. We can not test our model.