NEW
Font size
WorksheetsWorkshop_quiz_on Sk-learn
Total questions: 15
Worksheet time: 8mins
What is Scikit-learn primarily used for?
Data visualization
Web development
Machine learning
Database management
Scikit-learn is built on top of which libraries?
TensorFlow and Keras
NumPy, SciPy, and Matplotlib
PyTorch and Pandas
Statsmodels and Seaborn
Which module in Scikit-learn is used for preprocessing data?
sklearn.model_selection
sklearn.preprocessing
sklearn.metrics
sklearn.pipeline
What is the purpose of train_test_split()?
To train the model
To split data into training and testing sets
To scale the data
To evaluate accuracy
Which method is used to fit a model in Scikit-learn?
.predict()
.score()
.fit()
.train()
What is the purpose of .predict() method?
To evaluate model accuracy
To make predictions on new data
To train the model
To shuffle the dataset
Which of the following is NOT a supervised learning algorithm in Scikit-learn?
Linear Regression
Decision Tree
K-Means
Random Forest
Which Scikit-learn class is used for standardizing features?
MinMaxScaler
StandardScaler
Normalizer
LabelEncoder
What does the score() method generally return for classifiers?
Confusion matrix
Model accuracy
Loss function value
Precision score
Which Scikit-learn function helps perform cross-validation?
cross_val_score()
model_selection()
validation_curve()
fit_predict()
Which of the following is used for feature selection?
SelectKBest
StandardScaler
GridSearchCV
LabelEncoder
What does Pipeline do in Scikit-learn?
Automates ML workflow steps
Stores datasets
Tunes hyperparameters
Visualizes model performance
Which module provides tools for hyperparameter tuning?
sklearn.metrics
sklearn.grid_search
sklearn.model_selection
sklearn.preprocessing
What is the purpose of LabelEncoder?
Normalizes data
Encodes categorical labels as numbers
Reduces dimensionality
Scales features
Which method is used to evaluate a regression model in Scikit-learn?
accuracy_score()
r2_score()
confusion_matrix()
f1_score()
