Assignment-1
Assignment-1
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?
5.Illustrate various cases where Linear regression fails over Logistic regression and vice-versa.
X=[1,2,3,4,5 ]
Y=[3,6,7,11,15 ]
Epoch=3
a. Epochs
b. Learning rate
c. Parameters
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
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