Unit 6: Spark ML Programming and PySpark - Subjective Questions

INT315 — Cluster Computing • Practice Questions with Detailed Answers

20 questions

1

Define machine learning and explain how PySpark supports machine learning on large-scale datasets.

2

Explain the major techniques of machine learning with suitable examples.

3

What is Spark MLlib? Distinguish between Spark MLlib and the Spark ML DataFrame-based API.

4

Describe the key concepts of Spark ML and explain the role of transformers, estimators, models, and pipelines.

5

Explain the general procedure for implementing a machine learning algorithm using PySpark.

6

Derive the objective function used in linear regression and explain how linear regression is implemented in PySpark.

7

Explain logistic regression, its sigmoid function, and its use in PySpark classification problems.

8

Describe the working of a decision tree classifier and discuss its important parameters in Spark ML.

9

Explain the K-means clustering algorithm and describe how it can be implemented using PySpark.

10

Explain the principle of Support Vector Machines and discuss the role of the margin and kernel in classification.

11

Explain the Naive Bayes classification algorithm and state the assumption on which it is based.

12

Compare linear regression, logistic regression, decision trees, K-means, SVM, and Naive Bayes based on their learning type, output, and typical applications.

13

Explain model evaluation in Spark ML and distinguish between regression metrics and classification metrics.

14

Define a confusion matrix and derive accuracy, precision, recall, and F1-score from its components.

15

Explain , RMSE, and MAE as regression evaluation metrics. Compare their interpretation and limitations.

16

What is a correlation heat map? Explain how it is used during exploratory data analysis and feature selection.

17

Explain the importance of feature preprocessing in Spark ML. Discuss feature vector assembly, categorical encoding, and feature scaling.

18

Describe how a Spark ML pipeline is constructed for a classification problem using PySpark.

19

Explain overfitting and underfitting in Spark ML models and describe methods to improve generalization.

20

Derive the gradient descent update rule for linear regression and explain its relevance to distributed Spark ML training.