You are on page 1of 2

Quiz 2

Total Marks: 10
SEMESTER Spring 2023
CS446 – Machine Learning (Section – W1) Duration: 25min

Student ID

Name

Date 03 April 2023


Sigmoid Function:

Question No: 1 Marks:3.5


1. (1 points) What is a convex function, is the sigmoid function is a convex function or not.
Solution: convex function is such function where you can find global minima or maxima.
Sigmoid function is not convex function.
2. (1 points) What is the difference between linear regression and logistic regression
Solution: linear regression is regression which works for continuous data whereas logistic regression is
actually classification and work for discrete data.
3. (1 points) What is the decision boundary in logistic regression
Solution: decision boundary decides the category/label of given sample

4. (1 points) What are those specific situations where neural networks are used
Solution: At certain point the conventional algorithms performance remains the same, even
with more data is used for training, whereas the neural networks performance improves with
more data.

5. (1 points) What is forward propagation?


Solution: Forward propagation is a process where input data is provided through a network,
in a forward direction, to generate an output for classification.
Question No: 2 x 1Marks:6

(6 points) You need to make a Neural Network for XOR, it corresponding table is given as below

X1 X2 y
x1 x2 x 1 and x 2 (Z) x 1and x 2 (Y) Z or Y 0 0 0
0 0 0 0 0 0 1 1
0 1 1 0 1
1 0 1
1 0 0 1 1
1 1 0 0 0 1 1 0

You might also like