wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

machine learning algorithm

Total questions: 59

Worksheet time: 30mins

Name
Class
Date
1.

Using the Iris dataset, we can construct a tree as follows and this example applies:

a)

Regression

b)
  1. Multi-output problems

c)
  1. Classification

d)
  1. All of the above

2.

To look at the first 5 rows in a data set, the command is used:

a)

catplot

b)

load_dataset

c)

df.head()

d)

df.heag()

3.

You work for an insurance company. Which machine learning project would add the most value for the company?

a)
  1. Use machine learning to better predict risk

b)
  1. Create an algorithm that consolidates all of your Excel

    spreadsheets into one data lake.

c)
  1. Create an artificial neural network that would host the company directory.

d)
  1. Use machine learning and big data to research salary requirements.

4.

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?

a)

unsupervised machine learning

b)

reinforcement learning

c)

supervised machine learning

d)

binary classification

5.

Which of the following is NOT supervised learning?

a)

Linear Regression

b)

PCA

c)

Decision Tree

d)

Naive Bayesian

6.

How do machine learning algorithms make more precise predictions?

a)

The algorithms are better at seeing patterns in the data

b)

The algorithms are typically run more powerful servers.

c)

The algorithms can run on unstructured data.

d)

Machine learning servers can host larger databases.

7.

The Principal Components Analysis is used to

a)
  1. identify a smaller number of uncorrelated variables, also called "principal components", from a large set of data

b)
  1. Result of the multiplication matrix

c)
  1. None of the above

d)
  1. identify a large number of correlated variables, also called "main components", from a smaller set of data

8.

What is the difference between unstructured and structured data ?

a)
  1. Unstructured data is always text.

b)
  1. Structured data is much more popular.

c)
  1. Unstructured data is much easier to store.

d)
  1. Structured data has clearly defined data types

9.

Why is it important for machine learning algorithms to have access to high-quality data?

a)
  1. If the data is high quality, the algorithms will be easier to develop.

b)
  1. If the data is low quality, you will get inaccurate results.

c)
  1. It will take too long for programmers to scrub poor data.

d)
  1. Low-quality data requires much more processing power than high-quality data.

10.

In Sklearn, what is pca.components_?

a)
  1. Matrix of principal components

b)
  1. Set of all eigen vectors for the projection space

c)
  1. Result of the multiplication matrix

d)
  1. None of the above

11.

What is the best definition for bias in your data model?

a)
  1. Bias is when your values are always off by the same percentage.

b)
  1. Bias is when your predicted values are scattered

c)

Bias is the gap between your predicted value and the outcome.

d)

Bias is when your data is wrong for different reasons.

12.

Least square regression solves a maximum likelihood estimation problem under a linear model

a)

False

b)

True

13.

How do you deal with data in a dataset that is missing or corrupted?

a)

All of the above

b)

Assign a unique category to missing values

c)

Drop missing rows or columns

d)

Replace missing values with mean/median/mode

14.

The most popular library for modeling the types of data typically stored in DataFrames:

a)

Eval-Learn

b)

Learn

c)

All of the above

d)

Scikit-learn

15.

Which of the following machine learning algorithms is based on the principle of bagging and is extensively used and effective?

a)

Random Forest

b)

Classification

c)

Decision Tree

d)

Regression

16.

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)

a)

X=df

b)
  1. X = df.head

c)
  1. y = np.array(y)

d)
  1. X = np.array(X)

17.

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?

a)
  1. K-nearest neighbor

b)
  1. learning algorithm are you using

c)
  1. binary classification

d)
  1. K-means lustering

18.

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?

a)

Include training email data from new employees.

b)
  1. Include training email data from employees who write the majority of internal emails.

c)
  1. Include training email data from seasoned employees.

d)
  1. nclude training email data from all employees.

19.

dataset is a

a)
  1. None of the above

b)
  1. processed and other linear of data

c)
  1. unprocessed and unstructured array of data

d)
  1. processed and structured array of data

20.

Non-linear dimensionality reduction means that the

a)

algorithm allows us to separate data that cannot be separated by a straight line

b)
  1. the algorithm does not allow dividing data that cannot be divided in a straight line

c)
  1. All the above

d)

he algorithm does not allow you to separate multiple data that cannot be separated by a line

21.

Many of the advances in machine learning have come from improved

a)

structured data

b)

availability

c)

Statistics

d)

algorithms

22.

In unsupervised learning, a dataset

a)
  1. is provided with labels, and a model learns use of the dataset

b)
  1. is provided with labels, and a model learns use properties of the structure of the dataset

c)

All of the above

d)

is provided without labels, and a model learns useful properties of the structure of the dataset

23.

Non-negative matrix factorization is

a)

it is an unsupervised preprocessing task that is performed before any ML algorithm is applied

b)
  1. an unsupervised algorithm that simultaneously performs dimensionality reduction and clustering

c)
  1. All the above

d)
  1. based on “orthogonal linear transformation”

24.

SHAP Values is it:

a)
  1. SHap Additive

b)
  1. SHap Additive Predictions

c)
  1. SHapley Additive exPlanations

d)
  1. All of the above

25.

Which statement about K-means clustering is true?

a)

In K-means clustering, the initial centroids are sometimes randomly selected.

b)
  1. To be accurate, you want your centroids outside of the cluster

c)
  1. K-means clustering is often used in supervised machine learning.

d)
  1. The number of clusters are always randomly selected.

26.

Boosting refers to a family of algorithms that are able

a)
  1. to convert strong learners to weak learners

b)
  1. All of the above

c)
  1. to convert weak learners to strong learners

d)
  1. It’s meta-algorithm, which takes M subsamples

27.

Which of the following combinations checks if there are missing values:

a)

iris_df.isnull().sum()

b)

iris_df.sum()

c)

iris.sum()

d)

iris_df.null().sum()

28.

Supervised learning is

a)
  1. a dataset is provided without labels, and a model learns useful properties of the structure of the dataset.

b)
  1. 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) .

c)
  1. 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) .

d)
  1. All of the above

29.

Which of the following is a good characteristic of a test dataset?

a)

Is representative of the dataset as a whole

b)

Large enough to yield meaningful results

c)

Drop missing

d)

Drop missing rows or columns

30.

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?

a)
  1. pivot table

b)
  1. K-means cluster diagram

c)
  1. multiclass classification diagram

d)
  1. linear regression and scatter plots

31.

full name t-SNE

a)
  1. stochastic neighbor

b)
  1. high-dimensional space

c)
  1. t-distributed stochastic neighbor embedding

d)
  1. All the above

32.

K-means clustering is what type of machine learning algorithm?

a)

Classification

b)

Reinforcement

c)

Supervised

d)

Unsupervised

33.

The DBSCAN algorithm is based on this intuitive notion of

a)
  1. Factor

b)
  1. “clusters” and “noise”.

c)
  1. Underfitting

d)
  1. All the above

34.

Which of the following combinations will create an empty list for the WCSS metric entry?

a)
  1. wcss1 = [3]

b)
  1. wcss = []

c)
  1. wcss2 = [2]

d)
  1. wcss1= [0]

35.

Boosting refers to a family of algorithms that are able

a)
  1. to convert weak learners to strong learners

b)
  1. All of the above

c)
  1. to convert strong learners to weak learners

d)
  1. It’s meta-algorithm, which takes M subsamples

36.

Linear regression is a

a)
  1. learning algorithm that predicts a unreal-valued output based on output values

b)
  1. unsupervised learning algorithm that predicts a real-valued output based on output values

c)
  1. All the above

d)
  1. supervised learning algorithm that predicts a real-valued output based on input values

37.

When coding, this library is written as:

a)

Dlearn

b)

Sklearn

c)

Bklearn

d)

Vlearn

38.

___refers to a model that can neither model the training data nor generalize to new data.

a)
  1. underfitting

b)
  1. all of the above

c)
  1. overfitting

d)
  1. good fitting

39.

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?

a)
  1. Machine learning algorithms are powerful enough to eliminate bias from the data.

b)
  1. All human-created data is biased, and data scientists need to account for that

c)
  1. There is no way to identify bias in the data.

d)
  1. Machine learning algorithms are based on math and statistics, and so by definition will be unbiased.

40.

What is the difference between unstructured and structured data ?

a)
  1. Unstructured data is much easier to store.

b)
  1. Unstructured data is always text.

c)
  1. Structured data has clearly defined data types

d)
  1. Structured data is much more popular.

41.

t-SNE is an

a)
  1. Unsupervised non-linear dimensionality reduction technique for data exploration and visualizing  high-dimensional data

b)
  1. supervised non-linear dimensionality reduction technique for data exploration and visualizing lown- dimensional data

c)
  1. Multi-output problems

d)
  1. All the above

42.

What is stacking?

a)
  1. You use several machine learning algorithms to boost your results

b)
  1. The predictions of one model become the inputs another

c)
  1. You stack your training set and testing set together

d)
  1. You use different versions of machine learning algorithms

43.

In traditional computer programming, you input commands. What do you input with machine learning?

a)

data

b)

programs

c)

rules

d)

patterns

44.

What is the goal of regularization in the K nearest neighbors algorithm?

a)

making the decision boundaries more regula

b)

normalizing the data points so they can be compared with each other

c)

finding the slope of the line that represents the model

d)

using a straight line model to make predictions based on training data

45.

In unsupervised learning, a dataset

a)
  1. is provided with labels, and a model learns use of the dataset

b)
  1. is provided with labels, and a model learns use properties of the structure of the dataset

c)
  1. is provided without labels, and a model learns useful properties of the structure of the dataset

d)
  1. All of the above

46.

Attribute selection measures. There are 2 popular attribute selection measures. They are as follows:

a)
  1. Leaf/Terminal Node

b)
  1. Parent and Child Node

c)
  1. Information gain and Gini index

d)
  1. All of the above

47.

If you are thinking about using machine learning algorithms, the best thing you can do today is to ensure you have quality ___

a)
  1. Data

b)
  1. Networking

c)
  1. statistical techniques

d)
  1. Processors

48.

Which of the following is a good characteristic of a test dataset?

a)

Is representative of the dataset as a whole

b)

Large enough to yield meaningful results

c)

A and B

d)

Drop missing rows or columns

49.

How do you deal with data in a dataset that is missing or corrupted?

a)

Replace missing values with mean/median/mode

b)

Assign a unique category to missing values

c)

Drop missing rows or columns

d)

All of the above

50.

The Principal Components Analysis is used to

a)

identify a smaller number of uncorrelated variables, also called "principal components", from a large set of data

b)

identify a large number of correlated variables, also called "main сomponents", from a smaller set of data

c)

Result of the multiplication matrix

d)

None of the above

51.

Which attribute determines the minimum number of samples in a node to split?

a)
  1. min_samples_leaf

b)
  1. min_impurity_decrease

c)
  1. max_depth

d)
  1. min_samples_split

52.

What is ensemble modeling?

a)

when you create an ensemble of your training and test data set

b)

when you create an ensemble of different servers to run the algorithms

c)

when you find the one best algorithm for your ensemble

d)

when you use several ensembles of machine learning algorithms

53.

Classification and Regression Trees or CART is a term introduced

a)

by Leo Breiman to refer to Decision Tree algorithms that can be used for classification and regression modeling problems.

b)

by Neo to refer to Decision Tree algorithms that can't be used for regression modeling problem

c)

by Deo to refer to Decision Tree algorithms that can't be used for classification modeling problems

d)

None of the above

54.

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?

a)

tree nodes

b)

predictors

c)

root nodes

d)

deciders

55.

In unsupervised learning, a dataset

a)

All of the above

b)

s provided with labels, and a model learns use of the dataset.

c)

is provided without labels, and a model learns useful properties of the structure of the dataset.

d)

is provided with labels, and a model learns use properties of the structure of the dataset.

56.

full name DBSCAN

a)

Density-Based Clustering Spatial Of Applications With Cluster

b)

Density-Based Spatial Clustering Of Applications With Noise

c)

Density-Base Clustering Applications Of Spatial With Data

d)

Density-Base Cluster Application Of Spatial With algorithm

57.

What does the dataset consist of?

a)

All of the above

b)

Object, Characteristics of the object

c)

especially analysis

d)

statistics and probability

58.

Bagging is an abbreviation for

a)

"boolean aggregation".

b)

bootstrap aggregating".

c)

bootstep aggregating".

d)

All of the above

59.

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?

a)

Machine learning algorithms are powerful enough to eliminate bias from the data.

b)

All human-created data is biased, and data scientists need to account for that.

c)

here is no way to identify bias in the data.

d)

Machine learning algorithms are based on math and statistics, and so by definition will be unbiased.