AI Unit 3
AI Unit 3
3.1
4. Layers: Neurons are organized into layers in a neural network. There are
typically three types of layers:
i. Input Layer: This layer receives the initial data or features.
ii. Hidden Layer(s): These layers process the data and extract
relevant features through a series of computations.
iii. Output Layer: This layer produces the final result or prediction.
2. Hidden Layer
Hidden layers take their input from the input layer or other hidden layers.
Artificial neural networks can have a large number of hidden layers. Each
hidden layer analyzes the output from the previous layer, processes it
further, and passes it on to the next layer.
3. Output Layer
The output layer gives the final result of all the data processing by the
artificial neural network. It can have single or multiple nodes. For
instance, if we have a binary (yes/no) classification problem, the output
layer will have one output node, which will give the result as 1 or 0.
However, if we have a multi-class classification problem, the output layer
might consist of more than one output node.
Singlelayer preceptor Vs Multilayer preceptor
3.2
What is a Genetic Algorithm?
Genetic Algorithms are a class of search and optimization algorithms that
mimic the process of natural selection to find approximate solutions to
complex problems.
They are particularly useful for solving optimization and search problems
where traditional algorithms may struggle due to the vast search space or
non-linearity.
BNN Vs ANN
In this type of network, we have only two layers input layer and the output layer
but the input layer does not count because no computation is performed in this
layer. The output layer is formed when different weights are applied to input
nodes and the cumulative effect per node is taken. After this, the neurons
collectively give the output layer to compute the output signals.
When outputs can be directed back as inputs to the same layer or preceding
layer nodes, then it results in feedback networks. Recurrent networks are
feedback networks with closed loops. The above figure shows a single recurrent
network having a single neuron with feedback to itself.
4. Single-layer recurrent network
The above network is a single-layer network with a feedback connection in
which the processing element’s output can be directed back to itself or to
another processing element or both. A recurrent neural network is a class of
artificial neural networks where connections between nodes form a directed
graph along a sequence. This allows it to exhibit dynamic temporal behavior for
a time sequence. Unlike feedforward neural networks, RNNs can use their
internal state (memory) to process sequences of inputs.