Introduction to Machine Learning
- 113Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
113 questions
- 1Machine learning generally gives a computer data or patterns to learn from rather than_____instructions for performing a task.
Hint
Think about the contrast between programming every step and learning from examples.
Answer
explicit
- 2The data provided to a supervised learning system consists of_____pairs.
Hint
Each example contains evidence and the result associated with that evidence.
Answer
input-output
- 3The goal of supervised learning is to learn a function that maps_____to outputs.
Hint
The function receives evidence and produces a prediction.
Answer
inputs
- 4In supervised learning, the data used to help a model understand relationships between inputs and outputs is used to_____the model.
Hint
This is the process that occurs before evaluating the model on new data.
Answer
train
- 5Supervised learning is distinguished by the fact that a human has_____each data point with its correct output.
Hint
The output attached to an example tells the system what the correct category or value is.
Answer
labeled
- 6The three broad categories of machine learning discussed are supervised learning, reinforcement learning, and_____learning.
Hint
This category works with data without labels or additional feedback.
Answer
unsupervised
- 7In supervised learning, the learned function is often called a_____function because it approximates the unknown target function.
Hint
It is commonly represented by the letter h.
Answer
hypothesis
- 8A computer can represent a problem in many dimensions because each dimension can simply be tracked as a separate_____.
Hint
The computer does not need to visualize dimensions as humans do.
Answer
number
- 9A vector is a sequence of_____values, such as a Python list or tuple containing numbers.
Hint
Vectors are ordered collections used in the mathematical representation of data.
Answer
numerical
- 10The library discussed for implementing machine learning algorithms in Python is called_____.
Hint
It provides ready-made implementations of classifiers and model-fitting tools.
Answer
scikit-learn
- 11Classification is a supervised learning task in which inputs are mapped into discrete_____.
Hint
Examples include rainy versus not rainy and authentic versus counterfeit.
Answer
categories
- 12Predicting whether a banknote is authentic or counterfeit is an example of_____.
Hint
The output is one of two discrete categories.
Answer
classification
- 13In the weather example, humidity and air pressure are the input_____used to predict whether it will rain.
Hint
They are measurable pieces of evidence supplied to the model.
Answer
features
- 14In a labeled weather table, the information stating whether a day was rainy or not rainy is its_____.
Hint
It is the known output supplied by a human.
Answer
label
- 15In a graph of weather data, humidity can be placed on the x-axis and_____on the y-axis.
Hint
The two numerical inputs are humidity and this atmospheric measurement.
Answer
pressure
- 16In the weather graph, blue points represent rainy days, while red points represent_____rainy days.
Hint
The red category is the alternative to rainy.
Answer
not
- 17A new data point without an associated label is called an_____input.
Hint
The model must predict its category rather than simply read it from the data.
Answer
unlabeled
- 18Nearest neighbor classification assigns a new input the class of the_____data point.
Hint
The method bases its prediction on the closest known example.
Answer
nearest
- 19In nearest neighbor classification, the word class means a data point's_____.
Hint
Rain and no rain are examples of this.
Answer
category
- 20Nearest neighbor classification can be sensitive to a single nearby point, so considering_____neighbors may sometimes produce a better result.
Hint
The alternative to relying on only one neighbor is to examine a group of them.
Answer
multiple
- 21The k-nearest-neighbor algorithm chooses the most common class among the_____nearest data points.
Hint
This letter represents the chosen number of neighbors.
Answer
k
- 22In k-nearest-neighbor classification, each of the selected neighbors effectively casts one_____for its class.
Hint
The class with the largest count wins.
Answer
vote
- 23A decision boundary is a boundary intended to_____data points from different categories.
Hint
It divides rainy examples from not-rainy examples.
Answer
separate
- 24In two dimensions, a linear decision boundary can be represented by a_____.
Hint
It is the simplest geometric separator on a two-dimensional graph.
Answer
line
- 25A data set is linearly separable when a line can perfectly separate its two_____.
Hint
The two portions correspond to the different categories.
Answer
halves
- 26In real data, outliers and random_____can prevent perfect linear separation.
Hint
This refers to unwanted irregular variation in the data.
Answer
noise
- 27In the weather model, the hypothesis function takes humidity and pressure as its_____.
Hint
These are the variables supplied to the function.
Answer
inputs
- 28A linear combination multiplies each input variable by a corresponding_____.
Hint
This parameter expresses how important an input is in the calculation.
Answer
weight
- 29The additional weight used to shift the entire linear expression is called_____.
Hint
It is paired with a constant input of 1.
Answer
weight 0
- 30The model classifies a data point as rainy when the weighted expression is greater than or equal to_____.
Hint
This is the threshold used in the described hypothesis.
Answer
0
- 31The perceptron hypothesis produces the numerical output 1 for rain and_____for not rain.
Hint
The two categories are encoded numerically.
Answer
0
- 32The shape, slope, and position of a linear decision boundary are determined primarily by the model's_____.
Hint
These are the parameters learned from the data.
Answer
weights
- 33The dot product of two vectors is calculated by multiplying corresponding terms and then_____the results.
Hint
After pairwise multiplication, combine all products into one value.
Answer
adding
- 34The weight vector and input vector must have the same_____for their dot product to be defined.
Hint
Each weight needs a corresponding input component.
Answer
length
- 35The perceptron learning rule updates weights using labeled examples with an input and an actual output represented by_____.
Hint
In the notation, this variable represents the target value.
Answer
y
- 36If the actual output and the prediction are equal, the perceptron weight update is_____.
Hint
Correct predictions do not require a correction.
Answer
zero
- 37If the actual value is greater than the estimate, the perceptron rule generally increases the relevant_____.
Hint
The model needs to make its future output larger.
Answer
weight
- 38If the actual value is less than the estimate, the perceptron rule generally_____the relevant weight.
Hint
The model needs to lower its future output.
Answer
decreases
- 39The perceptron learning process can be repeated over many examples until the algorithm hopefully_____to a useful set of weights.
Hint
This means the parameters settle toward a stable solution.
Answer
converges
- 40The parameter alpha in the perceptron update is called the_____rate.
Hint
It controls how quickly the weights change in response to new information.
Answer
learning
- 41A larger learning rate causes the weights to be updated by a_____amount.
Hint
The learning rate scales the adjustment.
Answer
larger
- 42A hard threshold function has only two possible outputs, such as_____and 1.
Hint
The two outputs represent not raining and raining.
Answer
0
- 43A hard threshold cannot express how_____the model is about a prediction.
Hint
It provides only a category, not a degree of belief.
Answer
confident
- 44Logistic regression replaces the hard threshold with a_____threshold.
Hint
This threshold changes gradually rather than abruptly.
Answer
soft
- 45A logistic function can produce any real-valued output between_____and 1.
Hint
Its output range includes intermediate values such as 0.7.
Answer
0
- 46An output such as 0.7 from a logistic model can represent the estimated_____that an input belongs to a category.
Hint
It expresses likelihood rather than a simple yes-or-no result.
Answer
probability
- 47A support vector machine seeks a decision boundary called the maximum_____separator.
Hint
The goal is to maximize the distance between the boundary and the closest examples.
Answer
margin
- 48Support vector machines identify the data points closest to the boundary, called support_____.
Hint
These points determine the margin.
Answer
vectors
- 49The maximum margin approach is intended to improve how well a model_____to unseen data.
Hint
It should perform well beyond the training examples.
Answer
generalizes
- 50In higher-dimensional spaces, a linear decision boundary is generally called a_____.
Hint
It is the higher-dimensional analogue of a line.
Answer
hyperplane
- 51Support vector machines can address nonlinearly separable data by operating in_____dimensions.
Hint
The method transforms the problem into a space with additional dimensions.
Answer
higher
- 52A curved boundary such as a circle may separate data that cannot be separated by a straight_____.
Hint
The straight boundary is the two-dimensional linear alternative.
Answer
line
- 53Regression differs from classification because regression predicts a generally_____real-number value.
Hint
Sales amount is an example of this type of output.
Answer
continuous
- 54Predicting sales from advertising spending is an example of_____.
Hint
The target is an amount rather than a category.
Answer
regression
- 55In a regression graph relating advertising and sales, advertising spending is placed on the_____-axis.
Hint
The input variable is conventionally plotted horizontally.
Answer
x
- 56In the same graph, sales are placed on the_____-axis.
Hint
The predicted output is plotted vertically.
Answer
y
- 57A loss function estimates how_____a model's predictions are.
Hint
It measures error or loss of utility.
Answer
poorly
- 58For classification, the 0-1 loss function assigns a loss of_____when the prediction is correct.
Hint
A correct prediction produces no loss of utility.
Answer
0
- 59For classification, the 0-1 loss function assigns a loss of_____when the prediction is incorrect.
Hint
An incorrect prediction receives the nonzero penalty.
Answer
1
- 60The total loss summed over the original data points is called the empirical_____.
Hint
It aggregates the individual prediction errors.
Answer
loss
- 61L1 loss measures the absolute_____between an actual value and a predicted value.
Hint
It asks how far apart the two numerical values are.
Answer
difference
- 62L2 loss uses the_____of the difference between actual and predicted values.
Hint
This makes large errors receive disproportionately larger penalties.
Answer
square
- 63Compared with L1 loss, L2 loss penalizes large errors more_____.
Hint
Squaring a large difference increases its penalty substantially.
Answer
harshly
- 64Overfitting occurs when a model fits the training data too closely and fails to_____well.
Hint
The problem appears when the model encounters unseen data.
Answer
generalize
- 65A model that connects every training data point perfectly may have zero training loss but still suffer from_____.
Hint
Perfect performance on known examples does not guarantee good performance elsewhere.
Answer
overfitting
- 66Regularization penalizes hypotheses that are more_____in order to favor simpler solutions.
Hint
The method adds a measure of model complexity to the cost.
Answer
complex
- 67The parameter lambda controls how strongly model_____is penalized.
Hint
A larger value places more emphasis on simplicity.
Answer
complexity
- 68Regularization is intended to reduce the risk of_____.
Hint
It discourages a model from matching the training data too exactly.
Answer
overfitting
- 69Holdout cross-validation divides data into a training set and a_____set.
Hint
This second set is kept separate for evaluating the model.
Answer
testing
- 70The model learns its parameters using the_____set.
Hint
This is the subset supplied to the fitting process.
Answer
training
- 71The testing set should contain data the model has not_____before.
Hint
The purpose is to evaluate performance on new examples.
Answer
seen
- 72K-fold cross-validation divides the data into_____different sets.
Hint
The letter represents the number of folds.
Answer
k
- 73In k-fold cross-validation, each experiment holds out one fold for_____and trains on the remaining folds.
Hint
The held-out fold is not used to fit the model in that experiment.
Answer
testing
- 74A common summary of k-fold cross-validation results is the_____accuracy across the experiments.
Hint
Combine the performance values from all folds into one representative value.
Answer
average
- 75The scikit-learn function that automatically separates data into training and testing groups is_____.
Hint
Its name describes the two subsets it creates.
Answer
train_test_split
- 76In the banknote data, each row represents one_____.
Hint
The file contains one observation per row.
Answer
banknote
- 77The banknote data contains four input measurements for each data_____.
Hint
Each observation consists of evidence plus a label.
Answer
point
- 78In the banknote data, label 0 represents an authentic bill, while label 1 represents a_____bill.
Hint
The two labels distinguish genuine and fraudulent banknotes.
Answer
counterfeit
- 79In scikit-learn, the model is trained by calling its_____method with the input data and labels.
Hint
This method estimates the model from training examples.
Answer
fit
- 80After training, a scikit-learn model generates outputs for new inputs with its_____method.
Hint
This method produces the model's estimated labels or values.
Answer
predict
- 81The fraction of predictions that match the true labels is the model's_____.
Hint
It measures the proportion of correct classifications.
Answer
accuracy
- 82The scikit-learn class used for a support vector classifier is abbreviated_____.
Hint
These initials stand for support vector classifier.
Answer
SVC
- 83The k-neighbors classifier uses the parameter n-neighbors to specify how many_____to examine.
Hint
The parameter controls the value of k.
Answer
neighbors
- 84Reinforcement learning differs from supervised learning because the agent learns from_____rather than an initial collection of labeled pairs.
Hint
The agent acts, observes outcomes, and improves over time.
Answer
experience
- 85In reinforcement learning, an agent receives numerical rewards or_____for its actions.
Hint
Negative feedback is the opposite of a reward.
Answer
punishments
- 86The world in which a reinforcement learning agent acts is called its_____.
Hint
It supplies states and responds to the agent's actions.
Answer
environment
- 87After an agent takes an action, it generally receives a new state and a numerical_____.
Hint
This value may be positive or negative.
Answer
reward
- 88A Markov decision process represents states, available actions, transition probabilities, and a_____function.
Hint
This function evaluates the outcome of state-action transitions.
Answer
reward
- 89In a Markov decision process, the transition model gives the probability of reaching a next state given a current state and an_____.
Hint
The agent chooses this in the current state.
Answer
action
- 90Q learning estimates the value of taking an action in a particular_____.
Hint
The Q function receives a state and an action as inputs.
Answer
state
- 91Before any experience, Q learning initializes every state-action value to_____.
Hint
The agent initially has no knowledge about the value of its choices.
Answer
0
- 92A Q-learning update considers both the immediate reward and expected_____rewards.
Hint
The value of an action may include benefits received later.
Answer
future
- 93In Q learning, the learning-rate parameter alpha controls the importance of new information relative to_____information.
Hint
Past experiences already contribute to the current Q value.
Answer
old
- 94When alpha equals 1 in the Q-learning update, the new estimate completely replaces the_____estimate.
Hint
A learning rate of one gives all weight to new information.
Answer
old
- 95A greedy policy chooses the action with the_____estimated Q value in the current state.
Hint
It selects the option currently believed to be best.
Answer
highest
- 96Using known actions that are believed to produce good rewards is called_____.
Hint
It uses existing knowledge instead of trying unfamiliar options.
Answer
exploitation
- 97Trying actions that have not been explored thoroughly is called_____.
Hint
The agent gathers information about other possible choices.
Answer
exploration
- 98The epsilon-greedy algorithm chooses a random action with probability_____.
Hint
This parameter controls how often the agent explores.
Answer
epsilon
- 99With probability 1 minus epsilon, epsilon-greedy chooses the estimated_____action.
Hint
This is the exploitation part of the policy.
Answer
best
- 100In Nim, a player may remove one or more objects from exactly_____pile on a turn.
Hint
The player can choose any pile but cannot remove from multiple piles at once.
Answer
one
- 101In the described version of Nim, the player who removes the_____object loses.
Hint
Taking the final remaining object causes defeat.
Answer
last
- 102Function approximation in reinforcement learning estimates Q values using features instead of storing a separate value for every state and_____.
Hint
The exact state-action table becomes impractical in very large spaces.
Answer
action
- 103Unsupervised learning uses data without human-provided_____.
Hint
Unlike supervised learning, the correct categories are not supplied.
Answer
labels
- 104Clustering organizes objects into groups whose members are_____to one another.
Hint
The goal is to place related examples in the same group.
Answer
similar
- 105K-means clustering divides data points into_____different clusters.
Hint
The user chooses this number before running the algorithm.
Answer
k
- 106K-means clustering defines each cluster by its_____.
Hint
This is the middle or average position of the cluster.
Answer
center
- 107During the assignment step of k-means, each point is assigned to the cluster whose center is_____to it.
Hint
The algorithm uses distance between a point and each center.
Answer
closest
- 108During the recentering step, each cluster center is moved to the_____of the points assigned to it.
Hint
The new center reflects the mean location of the cluster's members.
Answer
average
- 109K-means alternates between assigning points and_____the cluster centers.
Hint
The centers are recalculated after points are assigned.
Answer
moving
- 110The k-means process stops when no points change their cluster_____.
Hint
At this point the clustering has reached equilibrium.
Answer
assignment
- 111Clustering can be applied in market research to divide consumers into different_____.
Hint
These groups can help determine which advertisements to target.
Answer
groups
- 112Clustering can be used in image analysis to group pixels into different parts of an_____.
Hint
Pixels with similar properties may form meaningful regions.
Answer
image
- 113Because k-means has no labels, its clusters are discovered from patterns in the_____itself.
Hint
The algorithm relies on the relationships among the observations.
Answer
data

Ask anything
We've read this whole study set, so questions about it get the best answers.