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

Weekly Assignment 1

The document outlines a Week 2 assignment focused on Artificial Neural Network (ANN) fundamentals, consisting of theoretical questions about activation functions and gradient descent, as well as practical coding tasks. It includes explanations of activation functions like Sigmoid, ReLU, and Tanh, and requires Python implementations for calculating weighted sums, applying activation functions, and updating weights using gradient descent. Additionally, it asks for a program to compute the factorial of a given number.

Uploaded by

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

Weekly Assignment 1

The document outlines a Week 2 assignment focused on Artificial Neural Network (ANN) fundamentals, consisting of theoretical questions about activation functions and gradient descent, as well as practical coding tasks. It includes explanations of activation functions like Sigmoid, ReLU, and Tanh, and requires Python implementations for calculating weighted sums, applying activation functions, and updating weights using gradient descent. Additionally, it asks for a program to compute the factorial of a given number.

Uploaded by

Ashish Dahait
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

WEEK 2 Assignment — ANN Fundamentals

Section A — Theory Questions

Q1. Why do we need activation functions in neural networks?

Explain:

• Sigmoid

• ReLU

• Tanh

Q2. What is Gradient Descent?

Explain:

• Learning Rate

• Cost Function

• How weights are updated

Section B — Practical Coding

Q3. Python Implementation

Write a Python program to:

• Take 2 inputs

• Calculate weighted sum

• Apply Sigmoid activation

• Print final output

Q4. Simple Weight Update using Gradient Descent

Write a Python program to:

• Initialize weight = 5

• Learning rate = 0.1

• Gradient = 2

Update the weight using Gradient Descent formula and print the new weight.
Use:

Where:

• η = learning rate

• dL/dw = gradient

Q5. Write a program which can compute the factorial of a given numbers.

You might also like