Machine Learning (AI)
Machine Learning (AI)
Module 1
Module 2
Module 3
Module 4
Module 5
Based on the methods and way of learning, ML is divided into mainly four types.
o Labelled Data: The labelled data means some input data is already tagged
with the correct output.
o In supervised learning, the training data provided to the machines work as
the supervisor that teaches the machines to predict the output correctly.
1. Regression
2. Classification
o Linear Regression
o Polynomial Regression
o Lasso Regression
o Logistic Regression
o Support vector Machines
o Naive Bayes
1. Clustering
2. Association
o K-means clustering
o Principal Component Analysis
o DBSCAN Algorithm
o Apriori Algorithm
o FP-Growth algorithm
UNSUPERVISED
SUPERVISED LEARNING LEARNING
3. Semi-Supervised Learning
Semi-Supervised learning is a type of Machine Learning algorithm that represents
the intermediate ground between Supervised and Unsupervised learning
algorithms. It uses the combination of labeled and unlabeled datasets during the
training period.
3. Reinforcement Learning
Reinforcement Learning is a feedback-based Machine learning technique in which
an agent learns to behave in an environment by performing the actions and
seeing the results of actions. The agent learns automatically with these feedbacks
and improves its performance. The agent learns with the process of hit and trial,
and based on the experience. Finding the shortest route between two points on a
map is a typical reinforcement learning use-cases
o Input: The input should be an initial state from which the model will start
o Output: There are many possible outputs as there are a variety of
solutions to a particular problem
o Training: Training is based upon the input, Model will return a state and
the user will decide to reward or punish the model based on its output.
o The model keeps continues to learn.
o The best solution is decided based on the maximum reward.
1. Positive Reinforcement
2. Negative Reinforcement
o Game Playing: RL has been used to teach bots to play a number of video
games such as tic-tac-toe, chess, etc.
The typical Artificial Neural Network looks something like the given figure.
o There are around 1000 billion neurons in the human brain. Each neuron has
an association point somewhere in the range of 1,000 and 100,000. In the
human brain, data is stored in such a manner as to be distributed, and we
can extract more than one piece of this data when necessary from our
memory parallelly. We can say that the human brain is made up of
incredibly amazing parallel processors.
Dendrites Inputs
Synapse Weights
Axon Output
The architecture of an artificial neural network
Artificial neural network consists of a large number of artificial neurons, which are
termed units arranged in a sequence of layers. Artificial Neural Network primarily
consists of three layers.
Input Layer: As the name suggests, it accepts inputs in several different formats
provided by the programmer.
Hidden Layer: The hidden layer presents in-between input and output layers. It
performs all the calculations to find hidden features and patterns.
Output Layer: The input goes through a series of transformations using the
hidden layer, which finally results in output that is conveyed using this layer.
The artificial neural network takes input and computes the weighted sum of the
inputs and includes a bias. This computation is represented in the form of a
transfer function.
1. Feed-Forward ANN
2. FeedBack ANN
2. FeedBack ANN: Here, feedback loops are allowed. In this type of ANN, the
output returns into the network to accomplish the best-evolved results internally.
The feedback networks feed information back into itself and are well suited to
solve optimization issues. The Internal system error corrections utilize feedback
ANNs. They are used in content addressable memories.
Artificial Neural Network Algorithms
o Bayesian Networks
o Genetic Algorithm
o Back Propagation Algorithm
o Difficulty of showing the issue to the network: ANNs can work with
numerical data. Problems must be converted into numerical values before
being introduced to ANN. The presentation mechanism to be resolved here
will directly impact the performance of the network. It relies on the user's
abilities.