Unit 2: Data Preparation and Machine Learning Workflow - Subjective Questions

CSE252 — Introduction To Artificial Intelligence And Machine Learning • Practice Questions with Detailed Answers

20 questions

1

Explain the role of NumPy in data preparation and machine learning. Discuss its important features and commonly used operations.

2

Describe the purpose of Pandas in machine learning workflows. Explain the roles of Series and DataFrame objects.

3

Explain how Matplotlib supports exploratory data analysis. Describe at least four types of plots and their applications.

4

What are the major types of datasets used in machine learning? Explain structured, semi-structured, and unstructured datasets with examples.

5

Describe the complete process of data collection for a machine learning project. What factors should be considered to ensure data quality?

6

Explain exploratory data analysis and describe a systematic EDA procedure for a newly collected dataset.

7

Discuss different methods for handling missing values. Compare deletion, mean or median imputation, mode imputation, and model-based imputation.

8

What are outliers? Explain two statistical methods for detecting outliers and discuss how outliers should be treated.

9

Explain why feature scaling is needed in machine learning. Compare standardization and min-max normalization.

10

What is feature encoding? Explain label encoding, ordinal encoding, and one-hot encoding with suitable examples.

11

Explain feature selection and distinguish it from feature extraction. Describe filter, wrapper, and embedded feature-selection methods.

12

Describe the main stages of a machine learning workflow from defining the problem to deploying the final model.

13

Explain the train-test split method. Discuss its purpose, common proportions, and the importance of stratification.

14

What is cross-validation? Explain the procedure of k-fold cross-validation and state its advantages and limitations.

15

Compare a validation set with a test set. Why should the test set not be used repeatedly during model development?

16

Explain data leakage in preprocessing. Provide examples and describe how a machine learning pipeline can prevent it.

17

Distinguish between numerical, categorical, ordinal, and binary features. Explain suitable preprocessing methods for each type.

18

Describe how correlation and visualization can be used for feature selection during exploratory data analysis. Mention important precautions.

19

Explain the difference between normalization and standardization. In what situations would you prefer one over the other?

20

Discuss the problems caused by imbalanced target classes during data preparation and training. Explain suitable strategies for addressing class imbalance.