Unit 14: Machine Learning Packages in Python - Subjective Questions

ECAP792 • Practice Questions with Detailed Answers

20 questions

1

Define data import in Python. Explain how a CSV file can be imported using Pandas.

2

Describe how data can be imported from CSV, Excel, and JSON files in Python. Compare the functions used for these formats.

3

Explain the importance of inspecting and validating a dataset immediately after importing it.

4

What is Matplotlib? Describe its role in data visualization and explain the purpose of pyplot.

5

Describe the main components of a Matplotlib figure and distinguish between a figure and an axes object.

6

Explain how to create and customize a simple line plot in Matplotlib. Include a suitable example.

7

What is a scatter plot? Explain how it helps identify relationships between two numerical variables.

8

Distinguish between a line plot and a scatter plot. State an appropriate use case for each.

9

Explain how multiple data series can be displayed in one Matplotlib plot and how they should be made distinguishable.

10

Describe the purpose of subplots in Matplotlib and explain how a subplot arrangement can be created.

11

What is Seaborn? Explain how it extends Matplotlib for statistical data visualization.

12

Compare Matplotlib and Seaborn with respect to abstraction, customization, default appearance, and typical use.

13

Explain the use of the hue, style, and size parameters in a Seaborn scatter plot.

14

Define a heatmap and describe the types of information that can be represented using it.

15

Explain how to construct and interpret a correlation heatmap using Pandas and Seaborn.

16

What is Scikit-learn? Describe the major machine-learning tasks and utilities supported by the package.

17

Describe the standard workflow for building a supervised machine-learning model using Scikit-learn.

18

Explain the purpose of training and testing datasets. Show how train_test_split is used in Scikit-learn.

19

Explain the fit, predict, and score methods in the Scikit-learn estimator interface.

20

Design an end-to-end Python workflow that imports a dataset, explores it visually, trains a Scikit-learn model, and evaluates the result.