Pattern Analysis-Machine Learning
Pattern Analysis-Machine Learning
P(Yes|Sunny)= P(Sunny|Yes)*P(Yes)/P(Sunny)
• P(Sunny|Yes)= 3/10= 0.3
• P(Sunny)= 0.35
• P(Yes)=0.71
• So P(Yes|Sunny) = 0.3*0.71/0.35= 0.60
P(No|Sunny)= P(Sunny|No)*P(No)/P(Sunny)
• P(Sunny|NO)= 2/4=0.5
• P(No)= 0.29
• P(Sunny)= 0.35
• So P(No|Sunny)= 0.5*0.29/0.35 = 0.41
• So as we can see from the above calculation that P(Yes|Sunny)>P(No|Sunny)
• Hence on a Sunny day, Player can play the game.
Advantages of Naïve Bayes Classifier:
• Naïve Bayes is one of the fast and easy ML algorithms to predict a class of
datasets.
• It can be used for Binary as well as Multi-class Classifications.
• It performs well in Multi-class predictions as compared to the other
Algorithms.
• It is the most popular choice for text classification problems.
Disadvantages of Naïve Bayes Classifier:
• Naive Bayes assumes that all features are independent or unrelated, so it
cannot learn the relationship between features.
Artificial neural Network model
• Multilayer Perceptron – It is a feedforward artificial neural network
model. It maps sets of input data onto a set of appropriate outputs.
• Radial Basis Function Network – A radial basis function network is an
artificial neural network. It uses radial basis functions as activation
functions.
• Both of the above are being supervised learning networks used with
1 or more dependent variables at the output.
Multilayer Perceptron
• A multilayer perceptron is a feedforward artificial neural network
model.
• It maps sets of input data onto a set of appropriate outputs.
• In feed-forward neural networks, the movement is only possible in
the forward direction.
• An MLP consists of many layers of nodes in a directed graph, with
each layer connected to the next one.
• Each neuron is a linear equation like linear regression as shown in the
following equation
Radial Basis Function Network