0% found this document useful (0 votes)
11 views3 pages

DM Assignment.1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

DM Assignment.1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

RIPHAH COLLEGE OF COMPUTING

Assignment 1

Class/Semester: MSCS 1st Teacher Name: Muhammad Azeem


Course Title: Data Mining Total Marks: 10
Last Date: 26/12/2022

Name: Muhammad Asfar Siddique Roll no. 24587


Q# Question (s) Marks
1 Answer the Following questions 10
a) What are artificial neural networks?
b) Briefly discuss the architecture of artificial neural networks?
c) Explain how an artificial neural network work?
d) What are the advantage and disadvantages of the ANN?

Answers

a) Artificial Neural Networks (ANNs) are a type of machine learning algorithm inspired by the structure and function
of the human brain. They are composed of a large number of interconnected nodes (also called neurons), which
process and transmit information to each other. ANNs are typically used for pattern recognition, classification,
prediction, and optimization tasks.

In an ANN, each neuron receives input signals from other neurons or from the external environment. The neuron
processes these inputs using a mathematical function called an activation function, which determines the output
signal of the neuron. The output signal is then transmitted to other neurons in the network, which repeat the
same process.

ANNs are trained by adjusting the strengths of the connections between neurons in the network, in order to
minimize a given objective function. This is done using a process called backpropagation, which computes the
gradient of the objective function with respect to the weights of the network. By iteratively adjusting the weights
based on this gradient, ANNs can learn to approximate complex functions and make predictions on new input
data.

ANNs have been successfully used in a wide range of applications, including computer vision, natural language
processing, speech recognition, robotics, and finance, among others.

B) Artificial neural networks (ANNs) have a layered architecture, which typically consists of an input layer, one or
more hidden layers, and an output layer. The number of hidden layers and neurons in each layer can vary
depending on the specific task and complexity of the problem being addressed.

In the input layer, each neuron represents a feature or input variable of the problem. The input layer receives the
raw input data and passes it to the first hidden layer.

The hidden layers are where the majority of the computation takes place in an ANN. Each neuron in a hidden
layer receives input from the previous layer and applies a mathematical function to generate an output. This
output is then passed on to the next layer until it reaches the output layer. The mathematical function used by
each neuron is called the activation function, and it typically involves a nonlinear transformation of the input.
The output layer produces the final output of the network, which can be a single value or a set of values,
depending on the task. The activation function used in the output layer depends on the type of problem being
addressed. For example, in a classification problem, the output layer may use a softmax function to produce a
probability distribution over the possible classes.

During training, the weights of the connections between neurons in the network are adjusted using an
optimization algorithm such as backpropagation. The goal of training is to find the set of weights that minimizes a
given loss function, which measures the difference between the predicted output of the network and the actual
output.

Overall, the architecture of ANNs allows them to learn complex relationships between input and output variables,
making them a powerful tool for a wide range of machine learning tasks.

C) Artificial neural networks (ANNs) work by learning to recognize patterns in data through a process of training.
The basic steps involved in the operation of an ANN are as follows:
Input data: The input data is fed into the input layer of the network. The input layer consists of one or more
neurons, each of which corresponds to a feature or input variable of the problem. The data is processed by the
neurons in the input layer and passed on to the first hidden layer.
Hidden layers: The hidden layers are where the majority of the computation takes place in an ANN. Each neuron
in a hidden layer receives input from the previous layer and applies a mathematical function to generate an
output. This output is then passed on to the next layer until it reaches the output layer. The mathematical function
used by each neuron is called the activation function, and it typically involves a nonlinear transformation of the
input.
Output layer: The output layer produces the final output of the network, which can be a single value or a set of
values, depending on the task. The activation function used in the output layer depends on the type of problem
being addressed. For example, in a classification problem, the output layer may use a softmax function to produce
a probability distribution over the possible classes.
Training: During training, the weights of the connections between neurons in the network are adjusted using an
optimization algorithm such as backpropagation. The goal of training is to find the set of weights that minimizes a
given loss function, which measures the difference between the predicted output of the network and the actual
output. The training process involves iteratively adjusting the weights until the network can accurately predict
the output for a given input.
Testing: Once the network has been trained, it can be used to make predictions on new input data. The input data
is fed into the input layer, and the network produces an output based on the weights learned during training. The
accuracy of the network can be evaluated by comparing its predicted output to the actual output for a set of test
data.
Overall, ANNs are powerful tools for pattern recognition and prediction, and have been successfully applied in a
wide range of applications, including computer vision, natural language processing, speech recognition, and
finance.

d) Advantages of Artificial Neural Networks (ANNs):

Ability to learn from data: ANNs can automatically learn to recognize patterns in data, without the need for
manual feature engineering.

Nonlinear mapping: ANNs can learn to map complex input-output relationships that may be difficult or
impossible to express using traditional mathematical models.

Robustness to noise: ANNs are relatively robust to noise in the input data and can still produce accurate outputs
even when the input is corrupted.

Parallel processing: ANNs can process multiple inputs simultaneously, which can make them faster than
traditional algorithms for certain tasks.
Generalization: ANNs can generalize well to new, unseen data, as long as the training data is representative of the
problem domain.

Disadvantages of Artificial Neural Networks (ANNs):

Black box: ANNs can be difficult to interpret, as the internal workings of the network are often not transparent.

Overfitting: ANNs can sometimes overfit to the training data, meaning they become too specialized to the training
data and do not generalize well to new data.

Training time: ANNs can be computationally expensive to train, especially for large datasets or complex networks.

Data requirements: ANNs require a large amount of labeled training data to learn accurately, which can be a
limitation in some applications.

Parameter tuning: ANNs have many parameters that need to be carefully tuned for optimal performance, which
can be a time-consuming and challenging task.

You might also like