This Study Resource Was
This Study Resource Was
m
Preprocessing
er as
co
Which of the following API is used to scale a dataset to range 0 and 1?
eH w
MinMaxScaler
o.
What is the output of the following code?
rs e
import sklearn.preprocessing as preprocessing
ou urc
regions = ['HYD', 'CHN', 'MUM', 'HYD', 'KOL', 'CHN']
print(preprocessing.LabelEncoder().fit(regions).transform(regions))
[1 0 3 1 2 0]
o
The preprocessing technique in which missing values are replaced with the mean
aC s
Imputing
print(preprocessing.Binarizer().fit(x).transform(x))
ar stu
[[ 1.]
[ 1.]
[ 1.]
[ 1.]]
sh is
True
Which of the following module of sklearn is used to deal with Nearest Neighbors?
n_neighbors
Which of the following parameter can be used to give more weightage to the
points, which are nearer to a point in the nearest neighbors method?
weights
This study source was downloaded by 100000832806195 from CourseHero.com on 09-28-2021 04:30:41 GMT -05:00
https://www.coursehero.com/file/52381959/Machine-Learning-Using-scikit-learntxt/
What is the strategy followed by Radius Neighbors method?
It looks in the vincinity of area, covered by a fixed radius, of each training
point.
Neighbors-based regression is mainly used when the data labels are continuous
rather than discrete variables.
True
Which of the following algorithms can be used with any nearest neighbors utility
in scikit-learn?
all
Which of the following module of sklearn is used for dealing with Decision
Trees?
m
tree
er as
co
Which of the following utility is used for regression using decision trees?
eH w
DecisionRegressor
o.
Decision trees overfit the data very easily.
rs e
True
ou urc
Which of the following parameter is used to tune a Decision Tree?
split
o
False
v i y re
True
ar stu
RandomForestClassifier
Which of the following module of sklearn is used for dealing with ensemble
methods?
ensemble
This study source was downloaded by 100000832806195 from CourseHero.com on 09-28-2021 04:30:41 GMT -05:00
https://www.coursehero.com/file/52381959/Machine-Learning-Using-scikit-learntxt/
Which approach is used by SVC and NuSVC for multi-class classification?
one vs one
What happens when very small value is used for parameter C in support vector
machines?
Misclassification happens- but in here all options are wrong
Which of the following module of sklearn provides the utilities to deal with
support vector machines?
svm
m
All
er as
co
LinearSVC class accepts kernel parameter value.
eH w
False
o.
Scaling or Normalization of data improves the accuracy of support vector
rs e
machines.
ou urc
True
Which of the following parameter of SVC method is used for fine-tuning the
model?
o
C
aC s
v i y re
false
ar stu
eps, min_samples
Which of the following clustering technique is used to group data points into
user given k clusters?
K-means clustering
This study source was downloaded by 100000832806195 from CourseHero.com on 09-28-2021 04:30:41 GMT -05:00
https://www.coursehero.com/file/52381959/Machine-Learning-Using-scikit-learntxt/
Spectral Clustering is best suited for identifying dense clusters.
False
Which of the following API is used to normalize a sample to the unit norm?
Normalizer
Which of the following library is widely used to read data from external sources
with structured data?
pandas
Which of the following expressions can access the features of the iris dataset,
shown in the below expression?
m
from sklearn import datasets
er as
iris = datasets.load_iris()
co
iris.data
eH w
What do the methods starting with fetch, of sklearn.datasets module do?
o.
Downloads a specific dataset from a library
rs e
ou urc
Which of the following is an important parameter of RadiusNeighborsClassifier?
radius
o
aC s
v i y re
ed d
ar stu
sh is
Th
This study source was downloaded by 100000832806195 from CourseHero.com on 09-28-2021 04:30:41 GMT -05:00
https://www.coursehero.com/file/52381959/Machine-Learning-Using-scikit-learntxt/
Powered by TCPDF (www.tcpdf.org)