PythonTutorials.net
Toggle Menu
Home
Online Python Compiler
Tutorials
Django
Flask
Scikit-Learn
NumPy
NLTK
Pillow
Blog
All Posts
Machine Learning Basics with Scikit-Learn
Evaluate your understanding of datasets,model training,and evaluation in scikit-learn.
1. Which type of machine learning requires labeled training data?
Supervised Learning
Unsupervised Learning
Reinforcement Learning
Semi-Supervised Learning
2. Which Scikit-Learn module contains tools for data preprocessing?
sklearn.preprocessing
sklearn.models
sklearn.learn
sklearn.data
3. Which of the following is a regression algorithm in Scikit-Learn?
LinearRegression
KMeans
PCA
DBSCAN
4. What is the default scoring metric for LogisticRegression in Scikit-Learn?
Accuracy
Precision
Recall
F1-Score
5. Which method is used to train a Scikit-Learn model on data?
fit()
train()
learn()
predict()
6. What does the 'fit_transform()' method do in Scikit-Learn preprocessing?
Fits the model to data and returns transformed data
Only fits the model to data
Only transforms the data
Splits data into train and test sets
7. Which built-in dataset in Scikit-Learn is commonly used for classification tasks?
Iris
Boston Housing
MNIST
CIFAR-10
8. RandomForestClassifier is an example of which type of model?
Ensemble
Linear
Clustering
Dimensionality Reduction
9. Select all examples of supervised learning algorithms in Scikit-Learn.
LinearRegression
KMeans
SVM (SVC)
PCA
DecisionTreeClassifier
10. Which of the following are preprocessing techniques in Scikit-Learn?
StandardScaler
OneHotEncoder
train_test_split
GridSearchCV
LabelEncoder
11. Which metrics are used for evaluating regression models?
Accuracy
R-squared (R²)
Mean Squared Error (MSE)
Precision
Mean Absolute Error (MAE)
12. Which Scikit-Learn tools are used for model selection?
GridSearchCV
RandomizedSearchCV
train_test_split
KFold
StandardScaler
13. Select all clustering algorithms available in Scikit-Learn.
KMeans
DBSCAN
AgglomerativeClustering
LinearRegression
SVM
14. Scikit-Learn provides built-in deep learning models.
True
False
15. The 'predict()' method of a classifier returns class labels, while 'predict_proba()' returns class probabilities.
True
False
16. Unsupervised learning requires labeled training data.
True
False
17. All Scikit-Learn estimators implement the 'fit' method.
True
False
18. What does 'ML' stand for in the context of machine learning?
19. Name the Scikit-Learn function used to compute cross-validation scores (abbrev.)
20. What is the full form of 'SVM'?
Reset
Answered 0 of 0 — 0 correct