NEW
Font size
Worksheetsmachine learning algorithm
Total questions: 59
Worksheet time: 30mins
Using the Iris dataset, we can construct a tree as follows and this example applies:
Regression
Multi-output problems
Classification
All of the above
To look at the first 5 rows in a data set, the command is used:
catplot
load_dataset
df.head()
df.heag()
You work for an insurance company. Which machine learning project would add the most value for the company?
Use machine learning to better predict risk
Create an algorithm that consolidates all of your Excel
spreadsheets into one data lake.
Create an artificial neural network that would host the company directory.
Use machine learning and big data to research salary requirements.
Your organization allows people to create online professional profiles. A key feature is the ability to create clusters of people who are professionally connected to one another. What type of machine learning method is used to create these clusters?
unsupervised machine learning
reinforcement learning
supervised machine learning
binary classification
Which of the following is NOT supervised learning?
Linear Regression
PCA
Decision Tree
Naive Bayesian
How do machine learning algorithms make more precise predictions?
The algorithms are better at seeing patterns in the data
The algorithms are typically run more powerful servers.
The algorithms can run on unstructured data.
Machine learning servers can host larger databases.
The Principal Components Analysis is used to
identify a smaller number of uncorrelated variables, also called "principal components", from a large set of data
Result of the multiplication matrix
None of the above
identify a large number of correlated variables, also called "main components", from a smaller set of data
What is the difference between unstructured and structured data ?
Unstructured data is always text.
Structured data is much more popular.
Unstructured data is much easier to store.
Structured data has clearly defined data types
Why is it important for machine learning algorithms to have access to high-quality data?
If the data is high quality, the algorithms will be easier to develop.
If the data is low quality, you will get inaccurate results.
It will take too long for programmers to scrub poor data.
Low-quality data requires much more processing power than high-quality data.
In Sklearn, what is pca.components_?
Matrix of principal components
Set of all eigen vectors for the projection space
Result of the multiplication matrix
None of the above
What is the best definition for bias in your data model?
Bias is when your values are always off by the same percentage.
Bias is when your predicted values are scattered
Bias is the gap between your predicted value and the outcome.
Bias is when your data is wrong for different reasons.
Least square regression solves a maximum likelihood estimation problem under a linear model
False
True
How do you deal with data in a dataset that is missing or corrupted?
All of the above
Assign a unique category to missing values
Drop missing rows or columns
Replace missing values with mean/median/mode
The most popular library for modeling the types of data typically stored in DataFrames:
Eval-Learn
Learn
All of the above
Scikit-learn
Which of the following machine learning algorithms is based on the principle of bagging and is extensively used and effective?
Random Forest
Classification
Decision Tree
Regression
Which of the following combinations, convert list X first to a one- dimensional Numpy array and then add a second dimension X = np.array(X).reshape(-1, 1)
X=df
X = df.head
y = np.array(y)
X = np.array(X)
You are working on a project that involves clustering together images of different dogs. You take image and identify it as your centroid image. What type machine learning algorithm are you using?
K-nearest neighbor
learning algorithm are you using
binary classification
K-means lustering
Your company wants you to build an internal email text prediction model to speed up the time that employees spend writing emails. What should you do?
Include training email data from new employees.
Include training email data from employees who write the majority of internal emails.
Include training email data from seasoned employees.
nclude training email data from all employees.
dataset is a
None of the above
processed and other linear of data
unprocessed and unstructured array of data
processed and structured array of data
Non-linear dimensionality reduction means that the
algorithm allows us to separate data that cannot be separated by a straight line
the algorithm does not allow dividing data that cannot be divided in a straight line
All the above
he algorithm does not allow you to separate multiple data that cannot be separated by a line
Many of the advances in machine learning have come from improved
structured data
availability
Statistics
algorithms
In unsupervised learning, a dataset
is provided with labels, and a model learns use of the dataset
is provided with labels, and a model learns use properties of the structure of the dataset
All of the above
is provided without labels, and a model learns useful properties of the structure of the dataset
Non-negative matrix factorization is
it is an unsupervised preprocessing task that is performed before any ML algorithm is applied
an unsupervised algorithm that simultaneously performs dimensionality reduction and clustering
All the above
based on “orthogonal linear transformation”
SHAP Values is it:
SHap Additive
SHap Additive Predictions
SHapley Additive exPlanations
All of the above
Which statement about K-means clustering is true?
In K-means clustering, the initial centroids are sometimes randomly selected.
To be accurate, you want your centroids outside of the cluster
K-means clustering is often used in supervised machine learning.
The number of clusters are always randomly selected.
Boosting refers to a family of algorithms that are able
to convert strong learners to weak learners
All of the above
to convert weak learners to strong learners
It’s meta-algorithm, which takes M subsamples
Which of the following combinations checks if there are missing values:
iris_df.isnull().sum()
iris_df.sum()
iris.sum()
iris_df.null().sum()
Supervised learning is
a dataset is provided without labels, and a model learns useful properties of the structure of the dataset.
where you have input variables (x) and an output variable (Y) and you use an algorithm to learn the mapping function from the input to the output Y = f(X) .
where you have other variables (x) and an next variable (Y) and you use an algorithm to learn the mapping data from the other to next Y = f(X) .
All of the above
Which of the following is a good characteristic of a test dataset?
Is representative of the dataset as a whole
Large enough to yield meaningful results
Drop missing
Drop missing rows or columns
You are part of a data science team that is working for a national fast-food chain. You create a simple report that shows trend: Customers who visit the store more often and buy smaller meals spend more than customers who visit less frequently and buy larger meals. What is the most likely diagram that your team created?
pivot table
K-means cluster diagram
multiclass classification diagram
linear regression and scatter plots
full name t-SNE
stochastic neighbor
high-dimensional space
t-distributed stochastic neighbor embedding
All the above
K-means clustering is what type of machine learning algorithm?
Classification
Reinforcement
Supervised
Unsupervised
The DBSCAN algorithm is based on this intuitive notion of
Factor
“clusters” and “noise”.
Underfitting
All the above
Which of the following combinations will create an empty list for the WCSS metric entry?
wcss1 = [3]
wcss = []
wcss2 = [2]
wcss1= [0]
Boosting refers to a family of algorithms that are able
to convert weak learners to strong learners
All of the above
to convert strong learners to weak learners
It’s meta-algorithm, which takes M subsamples
Linear regression is a
learning algorithm that predicts a unreal-valued output based on output values
unsupervised learning algorithm that predicts a real-valued output based on output values
All the above
supervised learning algorithm that predicts a real-valued output based on input values
When coding, this library is written as:
Dlearn
Sklearn
Bklearn
Vlearn
___refers to a model that can neither model the training data nor generalize to new data.
underfitting
all of the above
overfitting
good fitting
Your university wants to use machine learning algorithms to help sort through incoming student applications. An administrator asks if the admissions decisions might be biased against any particular group, such as women. What would be the best answer?
Machine learning algorithms are powerful enough to eliminate bias from the data.
All human-created data is biased, and data scientists need to account for that
There is no way to identify bias in the data.
Machine learning algorithms are based on math and statistics, and so by definition will be unbiased.
What is the difference between unstructured and structured data ?
Unstructured data is much easier to store.
Unstructured data is always text.
Structured data has clearly defined data types
Structured data is much more popular.
t-SNE is an
Unsupervised non-linear dimensionality reduction technique for data exploration and visualizing high-dimensional data
supervised non-linear dimensionality reduction technique for data exploration and visualizing lown- dimensional data
Multi-output problems
All the above
What is stacking?
You use several machine learning algorithms to boost your results
The predictions of one model become the inputs another
You stack your training set and testing set together
You use different versions of machine learning algorithms
In traditional computer programming, you input commands. What do you input with machine learning?
data
programs
rules
patterns
What is the goal of regularization in the K nearest neighbors algorithm?
making the decision boundaries more regula
normalizing the data points so they can be compared with each other
finding the slope of the line that represents the model
using a straight line model to make predictions based on training data
In unsupervised learning, a dataset
is provided with labels, and a model learns use of the dataset
is provided with labels, and a model learns use properties of the structure of the dataset
is provided without labels, and a model learns useful properties of the structure of the dataset
All of the above
Attribute selection measures. There are 2 popular attribute selection measures. They are as follows:
Leaf/Terminal Node
Parent and Child Node
Information gain and Gini index
All of the above
If you are thinking about using machine learning algorithms, the best thing you can do today is to ensure you have quality ___
Data
Networking
statistical techniques
Processors
Which of the following is a good characteristic of a test dataset?
Is representative of the dataset as a whole
Large enough to yield meaningful results
A and B
Drop missing rows or columns
How do you deal with data in a dataset that is missing or corrupted?
Replace missing values with mean/median/mode
Assign a unique category to missing values
Drop missing rows or columns
All of the above
The Principal Components Analysis is used to
identify a smaller number of uncorrelated variables, also called "principal components", from a large set of data
identify a large number of correlated variables, also called "main сomponents", from a smaller set of data
Result of the multiplication matrix
None of the above
Which attribute determines the minimum number of samples in a node to split?
min_samples_leaf
min_impurity_decrease
max_depth
min_samples_split
What is ensemble modeling?
when you create an ensemble of your training and test data set
when you create an ensemble of different servers to run the algorithms
when you find the one best algorithm for your ensemble
when you use several ensembles of machine learning algorithms
Classification and Regression Trees or CART is a term introduced
by Leo Breiman to refer to Decision Tree algorithms that can be used for classification and regression modeling problems.
by Neo to refer to Decision Tree algorithms that can't be used for regression modeling problem
by Deo to refer to Decision Tree algorithms that can't be used for classification modeling problems
None of the above
You create a decision tree to show whether someone decides to go to the beach. There are three factors in this decision: rainy, overcast, and sunny. What are these three factors called?
tree nodes
predictors
root nodes
deciders
In unsupervised learning, a dataset
All of the above
s provided with labels, and a model learns use of the dataset.
is provided without labels, and a model learns useful properties of the structure of the dataset.
is provided with labels, and a model learns use properties of the structure of the dataset.
full name DBSCAN
Density-Based Clustering Spatial Of Applications With Cluster
Density-Based Spatial Clustering Of Applications With Noise
Density-Base Clustering Applications Of Spatial With Data
Density-Base Cluster Application Of Spatial With algorithm
What does the dataset consist of?
All of the above
Object, Characteristics of the object
especially analysis
statistics and probability
Bagging is an abbreviation for
"boolean aggregation".
bootstrap aggregating".
bootstep aggregating".
All of the above
Your university wants to use machine learning algorithms to help sort through incoming student applications. An administrator asks if the admissions decisions might be biased against any particular group, such as women. What would be the best answer?
Machine learning algorithms are powerful enough to eliminate bias from the data.
All human-created data is biased, and data scientists need to account for that.
here is no way to identify bias in the data.
Machine learning algorithms are based on math and statistics, and so by definition will be unbiased.
