- Home
- Subjects
- Data Science
- Scikit-learn
Scikit-learn MCQs · Page 3
73 multiple choice questions with answers in Data Science.
-
A
Copy the estimator class definition into a new module
-
B
Serialise it with joblib.dump and restore it with joblib.load
Correct answer
-
C
Call model.save and reopen the file with Model.from_file
-
D
Print the model and rebuild it from the console output
-
A
Number of trees using a feature
-
B
Statistical p-value of each feature
-
C
Original scale of each feature
-
D
Relative contribution of each feature
Correct answer
-
A
Minus one to zero
-
B
Zero to one
Correct answer
-
C
Minus one to one
-
D
Zero to a hundred
-
A
The count of support vectors
-
B
The tuned hyperparameters
-
C
Mean accuracy on the passed data
Correct answer
-
D
The training time in seconds
-
A
GaussianNB
-
B
LinearSVC
Correct answer
-
C
LogisticRegression
-
D
RandomForestClassifier
-
A
StandardScaler
-
B
SimpleImputer
-
C
LabelEncoder
Correct answer
-
D
OneHotEncoder
-
A
Mean squared difference from truth
-
B
Share of predictions that are correct
Correct answer
-
C
Average of the predicted probabilities
-
D
Area under the ROC curve
-
A
Recomputes the metric on the grid mean
-
B
Refits the best estimator on all data
Correct answer
-
C
Repeats the search over a wider grid
-
D
Keeps every fold model for later use
-
A
The mean score only
-
B
The fitted estimators
-
C
A confusion matrix per fold
-
D
One score for each fold
Correct answer
-
A
It picks the algorithm for the user
-
B
It refits the scaler inside each fold
Correct answer
-
C
It runs the model on a GPU faster
-
D
It removes the need for a test set
-
A
Scales it into the range 0 to 1
-
B
Removes its constant values
-
C
Encodes it as dummy columns
-
D
Centres it to mean 0, variance 1
Correct answer
-
A
No, the original order is kept
-
B
Only when random_state is given
-
C
Only for regression targets
-
D
Yes, shuffle defaults to True
Correct answer
-
A
the training accuracy as a floating-point value
-
B
the estimator itself, so that calls can be chained
Correct answer
-
C
a fitted copy, leaving the original unchanged
-
D
a dictionary of the learned parameters
-
A
normalise numeric variables to a fixed range
-
B
remove duplicate rows from the input dataset
-
C
split the dataset into separate training and test subsets
-
D
convert categorical variables into binary indicator columns
Correct answer
-
A
plots learning curves after the training run completes
-
B
chains preprocessing steps and a final estimator as one object
Correct answer
-
C
automatically tunes every hyperparameter in the search space
-
D
stores the dataset in memory for repeated reuse later
-
A
scale numeric features to a common range between zero and one
-
B
impute missing values in the dataset carefully
-
C
reduce the number of columns in the frame
-
D
search over hyperparameter combinations with cross-validation
Correct answer
-
A
dimensionality reduction
-
B
unsupervised clustering
Correct answer
-
C
supervised classification
-
D
regression
-
A
(TP + TN) / total
-
B
TP / (TP + FN)
Correct answer
-
C
TP / (TP + FP)
-
D
TN / (TN + FP)
-
A
(TP + TN) / total
-
B
FP / (FP + TN)
-
C
TP / (TP + FP)
Correct answer
-
D
TP / (TP + FN)
-
A
number of false positives
-
B
ratio of true positives to all positives
-
C
proportion of correctly predicted instances
Correct answer
-
D
average of precision and recall
-
A
values between 0 and 1
-
B
a median of zero
-
C
no missing values
-
D
zero mean and unit variance
Correct answer
-
A
generates predictions on new data points
-
B
evaluates the model on the test data
-
C
splits the data into training and test sets
-
D
learns the model parameters from the training data
Correct answer
-
A
fit a regression model to the data
-
B
divide data into training and testing subsets
Correct answer
-
C
encode categorical variables as numbers
-
D
scale features to a common numeric range