Spark SQL and Machine Learning - Intermediate
Spark SQL and Machine Learning - Intermediate
1. Which method is used to load a dataset from a LIBSVM file format in Spark MLlib?
loadSVM()loadSVMLib()
loadLibsvm()
loadLibSVM()
2. Which algorithm is NOT available for classification tasks in Spark MLlib?
Linear RegressionDecision Trees
Random Forest
Logistic Regression
3. What is the purpose of the VectorAssembler transformer in Spark MLlib?
To split a feature vector into multiple columns.To perform dimensionality reduction on feature vectors.
To combine a given list of feature columns into a single feature vector column.
To perform normalization on feature vectors.
4. Which method is used to perform cross-validation for tuning hyperparameters in Spark MLlib?
GridSearchCV()CrossValidator()
RandomizedSearchCV()
HyperparameterTuner()
5. Which function is used to evaluate the performance of a classification model in Spark MLlib?
RegressionEvaluator()BinaryClassificationEvaluator()
MulticlassClassificationEvaluator()
ClusteringEvaluator()
6. Which algorithm is used for collaborative filtering in Spark MLlib?
K-MeansAlternating Least Squares (ALS)
Decision Trees
Logistic Regression
7. Which method is used to train a classification model in Spark MLlib?
fitModel()train()
trainClassifier()
fit()
8. Which method is used to save a trained model in Spark MLlib?
storeModel()save()
saveModel()
exportModel()
9. Which evaluation metric is commonly used for regression tasks in Spark MLlib?
AUC (Area Under the Curve)RMSE (Root Mean Squared Error)
F1-Score
Precision
10. Which method is used to load a model from disk in Spark MLlib?
loadModel()importModel()
load()
retrieveModel()