Introduction To Neural Networks AI
Introduction To Neural Networks AI
Decision Trees
It is a rule-based AI model which helps the machine in predicting what an element is with the help
of various decisions (or rules) fed to it. A basic structure of decision tree is shown below:
Here, the Decision tree starts from the question Am I Hungry? The beginning point of any
Decision Tree is known as its Root. It then forks into two different ways or conditions: Yes or No.
The forks or diversions are known as Branches of the tree. The branches either lead to another
question, or they lead to a decision like Go to Sleep which is known as the leaf. If you look closely
at the image above, you would notice that it looks like an inverted tree with root above and the
leaves below. Hence the name Decision Tree!
Points to Remember
● While making Decision Trees, one should take a good look at the dataset given to them and try
to figure out what pattern does the output leaf follow. Try selecting any one output and on its
basis, find out the common links which all the similar outputs have.
● Many times, the dataset might contain redundant data which does not hold any value while
creating a decision tree. Hence, it is necessary that you note down which are the parameters that
affect the output directly and should use only those while creating a decision tree.
● There might be multiple decision trees which lead to correct prediction for a single dataset. The
one which is the simplest should be chosen as the best.
• Speech recognition
• Character recognition
• Spell checking
Speech recognition
Character recognition
Spell Checking
Personalized Spell Checking using Neural Networks a new system for detecting misspelled
words was proposed. this system corrects the mistakes made by typist.
In the above image as we can see that the Neural Networks is divided into 3
components.
1. In the first layer of Neural Networks , there is input data in which we inserts
data.
2. In the second layer of Neural Networks , there is multiple hidden layers are there
which are not visible but all processing occurs in these layers.
3. In the third layer of Neural Networks , there is output data which gives the
output of data which was processed in the hidden layers.
Given are the images of a Human Neuron and its relation with the Neural Network. The axon
from a neuron sends an impulse to another neuron. The impulse received is then sent to the cell
body (nucleus) through dendrites. The cell body performs an activation function on the impulse
received and then gives it to the output axon which passes the same to the next neuron in the
system. Now as we relate this process with an Artificial Neural Network, we can see that the
input layer gets data which is passes on to the nodes in the hidden layer. The nodes perform
specific actions on the data and pass the processed information to the next layer. In the end, the
final processed data reaches the output of the system.
1. Supervised Learning
2. Unsupervised Learning
3. Reinforcement Learning
Supervised Learning
As the name supervised learning indicates there is a supervisor who teaches or trains
the model with respect to the output. In this type of learning, networks are trained to
provide the correct output by using several example inputs. For example, the network
can be trained on the data of students and marks. After training the network will be able
to calculate the marks based on various elements like the length of the answer, correct
facts written in the answers, comprehension length etc.
Unsupervised Learning
In this learning no output related information received by the neural network and it
provides only input. The system evaluates and find out how different elements are
related. This method used for solving clustering problems, estimation problems, self-
organizing maps etc.
Reinforcement Learning
Reinforcement learning, the neural network learn based on learning from experience.
Unlike supervised learning, reinforcement learning doesn’t have any output information.
It is employed by various software and machines to find the best possible behavior or
path it should take in a specific situation.