Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
25 views12 pages

Unit V (AI & ML)

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 12

Artificial Neural Network

• The term "Artificial neural network" refers to a biologically inspired sub-field of


artificial intelligence modeled after the brain.
• An Artificial neural network is usually a computational network based on biological
neural networks that construct the structure of the human brain.
• Similar to a human brain has neurons interconnected to each other, artificial neural
networks also have neurons that are linked to each other in various layers of the
networks.
• These neurons are known as nodes.
Relationship between Biological neural network and artificial neural
network:

Biological Neural Network Artificial Neural Network

Dendrites Inputs

Cell nucleus Nodes

Synapse Weights

Axon Output
The architecture of an artificial neural network:
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.
Advantages of Artificial Neural Network (ANN)

Parallel processing capability:


Artificial neural networks have a numerical value that can perform more than one task simultaneously.
Storing data on the entire network:
Data that is used in traditional programming is stored on the whole network, not on a database. The disappearance of
a couple of pieces of data in one place doesn't prevent the network from working.
Capability to work with incomplete knowledge:
After ANN training, the information may produce output even with inadequate data. The loss of performance here
relies upon the significance of missing data.
Having a memory distribution:
For ANN is to be able to adapt, it is important to determine the examples and to encourage the network according to
the desired output by demonstrating these examples to the network. The succession of the network is directly
proportional to the chosen instances, and if the event can't appear to the network in all its aspects, it can produce
false output.
Having fault tolerance:
Extortion of one or more cells of ANN does not prohibit it from generating output, and this feature makes the
network fault-tolerance.
Disadvantages of Artificial Neural Network:

Assurance of proper network structure:


There is no particular guideline for determining the structure of artificial neural networks. The appropriate
network structure is accomplished through experience, trial, and error.

Unrecognized behavior of the network:


It is the most significant issue of ANN. When ANN produces a testing solution, it does not provide insight
concerning why and how. It decreases trust in the network.

Hardware dependence:
Artificial neural networks need processors with parallel processing power, as per their structure. Therefore, the
realization of the equipment is dependent.

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.

The duration of the network is unknown:


The network is reduced to a specific value of the error, and this value does not give us optimum results.
How do artificial neural networks work?

Binary:
In binary activation function, the output is either a one or a 0.
Here, to accomplish this, there is a threshold value set up. If the
net weighted input of neurons is more than 1, then the final
output of the activation function is returned as one or else the
output is returned as 0.
Sigmoidal Hyperbolic:
The Sigmoidal Hyperbola function is generally seen as an "S"
shaped curve. Here the tan hyperbolic function is used to
approximate output from the actual net input. The function is
defined as:
F(x) = (1/1 + exp(-????x))
2. Classification of Handwritten Digits Using CNN

To create and train a simple Convolutional Neural Network (CNN) for classifying handwritten
digits from a popular dataset.
Convolutional Neural Network

NN is a deep learning technique to classify the input automatically (well, after you provide the right data).
A CNN model consists of three primary layers: Convolutional Layer, Pooling layer(s), and fully connected layer.

(1) Convolutional Layer: This layer extracts high-level input features from input data and passes those
features to the next layer in the form of feature maps.
(2) Pooling Layer: It is used to reduce the dimensions of data by applying pooling on the feature map to
generate new feature maps with reduced dimensions. PL takes either maximum or average in the old
feature map within a given stride.
(3) Fully-Connected Layer: Finally, the task of classification is done by the FC layer. Probability scores
are calculated for each class label by a popular activation function called the softmax function.
Dataset
The dataset that is being used here is the MNIST digits classification dataset. Keras is a deep learning API
written in Python and MNIST is a dataset provided by this API. This dataset consists of 60,000 training
images and 10,000 testing images. It is a decent dataset for individuals who need to have a go at pattern
recognition as we will perform in just a minute!
When the Keras API is called, there are four values returned namely- x_train, y_train, x_test, and y_test.
Do not worry, I will walk you through this.
Loading the Dataset

You might also like