0% found this document useful (0 votes)
28 views

Assignment-1

Uploaded by

gacil99877
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Assignment-1

Uploaded by

gacil99877
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment - 01

1. What is machine learning? What is a hypothesis? What are the three main components of the
machine learning process?
2. Define features, observations, and hypotheses. What are the various data formats of a dataset?
How does data format affect machine learning tasks? Explain with a suitable example.
3. Design a system that predicts the salary of a person based on his experience using the machine
learning approach. What will be experience E to learn task T to perform P for the system?
4. Refer to the data given in the table below, if in the linear regression model θ0 = 0, find the cost
using the cost function for θ1 = 0, 0.5 and 1. Which is the best value for θ1?

population of district (in lakhs) number of hospitals


1 2
2 5
3 10
4 14

5.Illustrate various cases where Linear regression fails over Logistic regression and vice-versa.

Justify your answer considering dataset and hypothesis.


6.Explain the importance of regularization in machine learning, describe how it works, and discuss
common regularization techniques.
7.Calculate the cost value of linear regression for the following dataset.

X=[1,2,3,4,5 ]

Y=[3,6,7,11,15 ]

Consider value of slope of hypothesis (Ɵ1) = 7

Constant/ intercept (Ɵ0)=5

Epoch=3

Learning rate (α) = 0.5


8. Explain the role of the following factors in reaching global minima with a gradient

descent algorithm for linear regression.

a. Epochs

b. Learning rate

c. Parameters

d. Bias and Variance


9. Explain overfitting in linear regression with examples. How do you overcome overfitting?
10.Describe the bias-variance tradeoff in machine learning. Why is it important, and how does

it affect model performance?


11.Compare L1 and L2 regularization techniques in terms of their effects on model complexity

and feature selection. How do they differ in their impact on the magnitude of weight values?
12.Explain the difference between supervised, unsupervised and reinforcement learning

techniques with suitable examples.


13.Why gradient descent algorithm is required in linear regression. List the difference

between stochastic gradient descent and batch gradient descent with suitable cost function.

14. Given the following dataset, you are asked to predict the price a given home.
Answer the below questions.
i) Which ML model you will choose? why?
ii) Assuming =0.0001, predict the price of 1,500 sq. ft. house up until 3rd epoch.
iii) If the actual price of the house is Rs. 180,000/-. Calculate the residual for the
prediction made in (ii).
House Size (in sq. ft.) House Price (in Lakhs)
100 120
120 140
140 160
160 180

You might also like