0% found this document useful (0 votes)
20 views3 pages

Python For Data Science - Unit 7 - Week 4 (Practice)

The document outlines the Week 4 practice assignment for the 'Python for Data Science' course on NPTEL, including questions related to data splitting, k-Nearest Neighbors classification, and linear regression concepts. It indicates that the assignment is for practice only and does not count towards the final score. The user submitted answers and received a score of 1 out of 5, with feedback on incorrect responses provided.

Uploaded by

Thangamari D
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)
20 views3 pages

Python For Data Science - Unit 7 - Week 4 (Practice)

The document outlines the Week 4 practice assignment for the 'Python for Data Science' course on NPTEL, including questions related to data splitting, k-Nearest Neighbors classification, and linear regression concepts. It indicates that the assignment is for practice only and does not count towards the final score. The user submitted answers and received a score of 1 out of 5, with feedback on incorrect responses provided.

Uploaded by

Thangamari D
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
You are on page 1/ 3

9/12/25, 1:57 PM Python for Data Science - - Unit 7 - Week 4

Answer Submitted.
X

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Python for Data Science (course)

If already
registered, click
to check your
Week 4: Practice Assignment 4
payment status Assignment not submitted
Note : This assignment is only for practice purpose and it will not be counted towards the
Final score

Course
outline 1) Which of the following functions can be used to split the data into train and test? 1 point

pandas.train_test_split( )
About NPTEL
() numpy.train_test_split( )
sklearn.model_selection.train_test_split( )
How does an sklearn.train_test_split( )
NPTEL online
course work? No, the answer is incorrect.
Score: 0
()
Accepted Answers:
sklearn.model_selection.train_test_split( )
Week 0 ()

2) The function used to perform k-Nearest Neighbors classification is: - 1 point


Week 1 ()
sklearn.KNN
Week 2 ()
sklearn.KNearestClassifier
sklearn.neighbors.KNeighborsClassifier( )
Week 3 ()
sklearn.neighbors.KNeighborsRegressor( )
Week 4 () No, the answer is incorrect.
Score: 0
Introduction to Accepted Answers:
Classification sklearn.neighbors.KNeighborsClassifier( )
Case Study

https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=56&assessment=172 1/3
9/12/25, 1:57 PM Python for Data Science - - Unit 7 - Week 4

(unit? 3) A Linear Regression model is said to be good when the R-squared value tends to 1 point
unit=56&lesson
=57) 0

Case Study on 1
Classification -1
Part I (unit?
0.5
unit=56&lesson
=58) Yes, the answer is correct.
Score: 1
Case Study on Accepted Answers:
Classification 1
Part II (unit?
unit=56&lesson
4) The Gini coefficient ranges from 1 point
=59)

Introduction to 0 to 1
Regression -1 to 0
Case Study
-1 to 1
(unit?
unit=56&lesson None of the above
=60)
No, the answer is incorrect.
Score: 0
Case Study on
Accepted Answers:
Regression
0 to 1
Part I (unit?
unit=56&lesson
=61) 5) What is heteroscedasticity as used to assess a Linear Regression model? 1 point

Case Study on Linear regression with varying error terms


Regression
Linear regression with constant error terms
Part II (unit?
unit=56&lesson Linear regression with no error terms
=62) All the above
Case Study on No, the answer is incorrect.
Regression Score: 0
Part III (unit? Accepted Answers:
unit=56&lesson Linear regression with varying error terms
=63)
Check Answers and Submit
Data sets (unit?
unit=56&lesson
Your score is: 1/5
=64)

Case Study
codes (unit?
unit=56&lesson
=65)

Week 4
Feedback Form
: Python for
Data Science!!
(unit?

https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=56&assessment=172 2/3
9/12/25, 1:57 PM Python for Data Science - - Unit 7 - Week 4

unit=56&lesson
=116)

Quiz: Week 4 :
Assignment 4
(assessment?
name=171)

Practice:
Week 4:
Practice
Assignment 4
(assessment?
name=172)

Supporting
material for
Week 4 ()

Download
Videos ()

Problem
Solving
Session -
July 2025 ()

https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=56&assessment=172 3/3

You might also like