0% found this document useful (0 votes)
28 views2 pages

Deep Learning Assignment IT4141

Uploaded by

dpunj810
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)
28 views2 pages

Deep Learning Assignment IT4141

Uploaded by

dpunj810
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

FACULTY OF ENGINEERING

SCHOOL OF INFORMATION, SECURITY AND DATA SCIENCE


B. Tech IT – VII-Sem
Session: JULY-NOV (2024)
DEEP LEARNING (IT4141)

EXTRA CLASS ASSIGNMENT- 2

Give the answer in True/False: (any two)


a) Activation function in Neural Network is non-linear in nature.
Q A1 b) McCulloch-pitts model have ability of learning.
c) Gradient Descent is a very popular classification algorithm.

a) If g is a hyperbolic tangent function, then g(z) = _____________


Q A2 b) PCA is a technique for _____________

Write Short Notes on the following: (any one)


a) Perceptron
Q A3
b) Role of Bias in Neural Network

Find the Principle Components for the following 2-D data:

(1,2), (3,3), (3,5), (5,4), (5,6), (6,5), (8,7), (9,8)


Q B1
If only the top eigen value is chosen, what will be the amount of information
preserved?
Q B2
Suppose we train the network with two points (0.5, 0.2) and (2.5, 0.9) with a single
neuron as shown in figure below:

1
The activation function used to train the network is given as f ( x )= and
−(w. x +b)
1+e
the loss function used is squared error loss function. With respect to this, using
gradient descent algorithm show how the values of ‘w’ and ‘b’ varies if the initial
setup is:
i) ‘w’ is chosen as ‘-ve’ and ‘b’ is -ve.
ii) ‘w’ is chosen +ve and ‘b’ is also chosen +ve.
iii) ‘w’ is chosen +ve and ‘b’ is chosen -ve.

Differentiate ReLU and Sigmoid activation function. Also write the mathematical
Q B3 expression and draw its rough graph. Why ReLU is preferred over Sigmoid?

What is the role of Backpropagation in Neural Network? Consider the below given
network with inputs A = 0.35 and B = 0.9 and find the output Y after 2 Iterations
where Learning Rate (η) is 0.1 and Target (Y) = 0.5.

Q C1

Assignment submission due date: 21/11/2024 in 2nd Extra class

Common questions

Powered by AI

The McCulloch-Pitts model is not suitable for learning in neural networks because it is a binary threshold neuron model that performs logical operations without the ability to modify parameters through learning rules. It essentially acts as a computational framework for basic logic gates but lacks mechanisms for weight adjustment necessary to accommodate new data or optimize a predictive model. This static nature precludes it from evolving in response to input data in the way that modern neural network models do through backpropagation and similar learning algorithms .

Bias in a neural network acts as an additional parameter that allows the activation function to be shifted left or right, which can enable better fitting of the data. It provides the network with the ability to translate its predictions across the input space. Without bias, for any input of zero, the output of neurons without activation would also be zero, potentially limiting the model's expressivity. Introducing bias helps the network model more complex functions and improve convergence during training due to increased flexibility in mapping input to output .

PCA is widely used in data visualization to reduce the dimensionality of datasets with numerous variables into two or three principal components that can be easily plotted. This transformation helps in revealing inherent structures, patterns, and relationship trends within the data that are less perceptible in high-dimensional space. However, while PCA simplifies visualization, it may also reduce data interpretability by distorting or removing contributing factors of less variance that might still hold significant contextual meaning. Thus, while PCA aids in the reduction of complexity and noise, there's a trade-off between simplification and the potential loss of subtle informative details, challenging comprehensive interpretation .

PCA is a technique used to reduce the dimensionality of a data set by transforming it into a set of linearly uncorrelated variables called principal components. It does this by identifying the axes (principal components) that maximize variance within the data, effectively capturing the most 'informative' directions. Each eigenvalue of these principal components corresponds to the amount of variance captured. By choosing only the top eigenvalue, we significantly reduce the dimensionality while preserving as much variance as possible; however, only the variance along the primary axis is maintained, potentially leading to the loss of information on other important directions, especially in cases with close eigenvalues .

Activation functions introduce non-linearity into neural networks, allowing them to solve complex tasks. The ReLU function, defined as f(x) = max(0, x), introduces sparsity and mitigates vanishing gradient issues by maintaining a linear relationship for positive values, while outputting zero otherwise, allowing deep networks to learn efficiently. In contrast, the Sigmoid function, f(x) = 1/(1 + e^-x), maps inputs to a bounded nonlinear range between 0 and 1, helping layer outputs form smooth transitions but suffers from vanishing gradients, which can slow learning in deeper networks as gradient values diminish through layers .

Backpropagation is an algorithm used to train neural networks by adjusting weights through a process of propagating gradients from the output layer back to the input layer. It efficiently calculates the gradient of the loss function with respect to each weight by applying the chain rule of calculus, enabling the network to learn by minimizing the output error. The learning rate in this context, denoted as η, is a hyperparameter that determines the step size at each iteration of the gradient descent, impacting how quickly or slowly the model learns. A suitable learning rate ensures convergence to a minima without overshooting .

ReLU is often preferred over the sigmoid activation function in neural networks because it addresses the vanishing gradient problem that affects deeper layers when sigmoid is used. As opposed to the sigmoid, which squashes input values to a range between 0 and 1, causing gradients to become very small and slow down learning, ReLU allows for more robust gradient propagation by outputting the input directly if it's positive, thus maintaining higher gradients. The mathematical expression for ReLU is f(x) = max(0, x), leading to a piecewise linear function with a slope of 1 for positive values and 0 otherwise . On the other hand, sigmoid, given by f(x) = 1/(1 + e^-x), saturates for large positive or negative inputs .

Using the gradient descent algorithm in neural network training impacts the update pattern of 'w' (weights) and 'b' (bias) depending on their initialization values. If 'w' and 'b' are both negative initially, their updates will attempt to adjust these parameters to correct the model output towards minimizing the loss. If both are positive, similarly, they will be moved towards regions in parameter space minimizing the error, but with different direction and magnitude adjustments compared to the negative case due to the nature of the loss surface and gradient. When 'w' is positive and 'b' negative, or vice versa, the interaction between these initial values influences the gradient path taken within weight space, potentially requiring more iterations to converge depending on baseline alignment to the loss function contours .

The hyperbolic tangent function, often used as an activation function in neural networks, is given by the mathematical expression g(z) = (e^z - e^-z) / (e^z + e^-z). It transforms input values into an output range between -1 and 1, which helps in centering the data around zero during processing. This centering can lead to a more balanced gradient and better convergence properties during training by reducing bias shift and ensuring non-zero gradients across a broader range of input values .

If a neural network is initialized with non-positive weights and a non-linear activation function, such as ReLU, which outputs zero for negative inputs, the network might not learn effectively as zero outputs suppress gradient updates, causing neural dead units. This is known as the dead ReLU problem. To address this, careful weight initialization methods, such as He initialization, can be employed, which aim for mean zero distributions to favor positive weights that can pass ReLU activation, preserving active gradient flows for effective learning. Alternatively, activation functions like Leaky ReLU can be used to allow for small negative gradients, countering unit death .

You might also like