What Is Machine Learning? How Machines Learn from Data

Find out what is really happening when a computer "learns". This material explains how machine learning finds patterns in examples instead of following hand-written rules, and what features, labels, training data and test data are. It compares supervised, unsupervised and reinforcement learning with everyday examples, gives an intuitive picture of how neural networks turn inputs into predictions and learn from their errors, and shows why models make mistakes, what accuracy does and does not tell you, and which questions to ask before you rely on an AI prediction at work.

BeginnerLesson 2 of 8 in AI Literacy and Generative AI at Work Course

What you will learn

  1. Describe what it means for a computer to learn from data instead of following hand-written rules, and how examples, features, labels and separate test data work together.
    • Compare hand-written rules with learning from examples
      Explain how machine learning differs from ordinary programming, what a model is, and what happens while a model is trained and while it is used.
    • Describe data with examples, features and labels
      Identify the examples, features and labels in a data set, and explain how categories, text, images and sound become numbers a model can use.
    • Use training data and test data to check learning
      Explain why labeled data is split into a training set and a test set, and recognize overfitting and underfitting from a model's results.
  2. Recognize the three main ways machines learn, what data or feedback each one needs, and which one fits an everyday task.
    • Explain supervised learning: classification and regression
      Describe how a model learns from labeled examples to predict a category or a number, using the nearest neighbor method and a fitted line as examples.
    • Explain unsupervised learning: finding structure without labels
      Describe how a model finds groups and unusual cases in unlabeled data, follow a simple clustering example, and explain why people must interpret the results.
    • Explain reinforcement learning: learning from rewards
      Describe how an agent learns which actions to take through trial, error and rewards, and where this approach is used, including in chat assistants.
    • Match a task to the right type of learning
      Decide which type of learning fits a task from the data and feedback available, and recognize self-supervised learning and combined approaches in real products.
  3. Build an intuitive picture of artificial neurons, layers and training, and explain why neural networks power much of modern AI yet still make mistakes.
    • Describe artificial neurons, weights and layers
      Explain how an artificial neuron combines weighted inputs into an output, and how neurons arranged in layers form a network.
    • Explain how a neural network learns from its errors
      Follow the training loop of predicting, measuring the error and adjusting the weights, and explain why training needs large amounts of data and computing power.
    • Judge where neural networks work well and where they fail
      Recognize the tasks where neural networks excel, and explain their typical weaknesses: data needs, hidden reasoning, confident mistakes and sensitivity to unfamiliar inputs.
  4. Trace model errors back to their causes, calculate and interpret accuracy, and ask the right questions about claims of how well an AI system works.
    • Trace model errors to their causes
      Explain how unrepresentative or biased data, wrong labels, missing information and a changing world lead to wrong predictions.
    • Calculate and interpret accuracy and types of errors
      Calculate accuracy from test results, tell false positives from false negatives, and explain why a high accuracy can still hide a useless model.
    • Question accuracy claims and use predictions responsibly
      Ask how a reported accuracy was measured, and decide how far to rely on a model's predictions in everyday work.

What Is Machine Learning study guide

4 chapters

1

From examples to useful predictions

A computer can apply rules someone wrote, or use examples to build a model. The difference becomes clear when you follow a payment from its input details to a fraud score. Understanding that path also helps you judge the data behind a prediction: what each record describes, where its answer came from, and whether a test really checks new cases. A strong training score is only one part of the picture.

1.1 Rules, models, training, and use

A person can recognize unwanted email without being able to list every rule that separates spam from useful messages. Machine learning handles this kind of task by finding patterns in examples. It is part of artificial intelligence, alongside approaches such as hand-written logic and searching for a route through a road map.

Two ways to build a system
ApproachWhat people supplyWhat the computer does
Hand-written rulesInstructions such as “Flag payments over 5,000 dollars made abroad.”Applies those instructions to each payment.
Machine learningExample payments, their outcomes, and a learning method.Builds a model that can score new payments.

A model is the stored structure used to turn an input into an output. Its output might be a category, an amount, or a score. Most models store learned numbers, called parameters. A person does not write out every combination of circumstances that the model will recognize.

Exact, stable rules are useful when a calculation can be specified completely. Calculating sales tax from a known rate is simpler to check with ordinary programming. Recognizing speech, spotting fraud, or recommending a product involves patterns too varied to capture in a short rule list.

Follow a fraud model

A bank collects hundreds of thousands of previous payments labeled “fraud” or “not fraud.” The input details include amount, place, time, and shop type. During training, a learning method uses these examples to prepare the model. Most methods repeatedly adjust parameters to reduce errors. Nearest neighbor methods work differently: they retain examples and compare new cases with them.

During inference, the trained model receives a new payment and produces a fraud score. A separate decision rule can use that score to flag the payment. The model does not need to be trained again to make each prediction. In many products, its parameters stay fixed during use until the team retrains it with new data.

The hand-written rule misses a small fraudulent purchase and may block a large honest purchase abroad. A learned model can use several features together, including combinations that would be awkward to list by hand. It can still make either kind of mistake.

What “learning” means

Learning means fitting patterns. A cat-and-dog photo classifier finds differences in pixel values; it has no human idea of what an animal is. Familiar patterns can work well while unfamiliar inputs produce surprising failures.

The aim is generalization: useful performance on examples the model has never seen. Memorizing the training cases is insufficient. Think of a learner who remembers last year's answers but cannot solve a changed question: a perfect rehearsal score would conceal the problem.

People remain responsible for choosing the task, collecting and labeling examples, selecting the learning method, deciding what success means, and checking the result. Machine learning changes the work people do; it does not remove their choices. Chat assistants, voice tools, image generators, and recommendation feeds are everyday uses of learned models.

Key Takeaways

  • Machine learning builds models from example data.
  • Training prepares a model; inference applies it to new inputs.
  • Most models learn parameters, while nearest neighbor methods retain examples.
  • Generalization means doing well on unseen cases.
  • People choose the task, data, method, and success criteria.

1.2 Examples, features, and labels

A data set becomes easier to understand when you separate the case being described, the information available about it, and the answer to predict. In a table, each row usually describes one example, also called a record, instance, or data point.

Read one row

Consider a used-car sale: “2019 Toyota, 42,000 miles, sold for 18,500 dollars.” The year, brand, and mileage are features: properties supplied as inputs. The sale price is the label: the target answer for that training example. When the model estimates the value of another car, it receives the features and predicts the missing price.

For an email classifier, one example is one email. Its words, sender, and link count can supply features. “Spam” or “not spam” is the label. A label can come from a person reviewing the email or from a record of what happened later. Neither source guarantees a flawless answer. Staff can disagree, and outcome records can be incomplete.

Turn inputs into numbers

Models calculate with numbers. Numerical features, such as floor area, already have a measurable scale. Categories, such as red, blue, and green, need a numerical representation that preserves their meaning. One approach makes a yes-or-no column for each color: “red” is 1 for red items and 0 otherwise. Simply using red = 1, blue = 2, and green = 3 can make a model treat the categories as ordered amounts.

Images, text, and sound also have numerical forms. A color image commonly stores three brightness values per pixel, one each for red, green, and blue, usually from 0 to 255. A 100 × 100 image has 10,000 pixels, so three values per pixel give 30,000 numbers. Text is split into words or word pieces that are matched to numerical representations. Recorded sound is a sequence of measurements taken thousands of times per second.

Choose information that helps

Floor area can help predict a house's sale price. The seller's favorite color is unlikely to help. The choice matters even when a feature seems harmless: a ZIP code can act as a proxy, or stand-in, for income or ethnic background. Removing a sensitive trait's own column does not remove every way the model could learn an unfair pattern.

Data quality also affects the patterns a model learns. Missing values, typing errors, duplicate rows, and outdated records can distort those patterns. More relevant, clean data can help; simply adding more poor records preserves their problems.

Keep the prediction time in view

Suppose a service wants to predict who will cancel next month. A cancellation-processing date looks very informative in old records, but it becomes available after the event being predicted. It would give the answer away during testing and be unavailable for a new customer who has not canceled. Every feature must be available when the prediction is made.

This timing check differs from asking whether a feature is statistically useful. A feature can be strongly linked to the answer and still be unusable for the actual prediction.

Key Takeaways

  • An example is one case; features describe its inputs; a label is its target answer.
  • Categories, images, text, and sound must have numerical representations.
  • Labels can contain mistakes and human judgments.
  • Proxy features can carry sensitive information indirectly.
  • Useful data must also be clean and relevant.
  • Features must be available at prediction time.

1.3 Checking new cases

A model's training results tell you how well it fits examples it has already used. To check learning, you also need examples kept separate from that process. This is how you look for generalization beyond familiar cases.

Keep an independent test

The training set supplies examples for learning. The test set stays out of training and checks the finished model on unseen cases. For example, a company shuffles 1,000 labeled emails, uses 800 for training, and holds back 200 for testing. If the model labels 184 of those 200 correctly, test accuracy is 184 ÷ 200 = 92%.

An 80/20 split is a common choice, as is 70/30; neither is a required rule. The important distinction is what each set is used for. Testing on training examples resembles giving students questions they already studied with the answers. If test cases slip into training, the test score becomes too optimistic.

Teams comparing many model versions often use a third validation set to choose between them. That leaves the test set untouched for the final check. Repeatedly choosing changes because they improve a test score makes that test less independent, even if the model never directly trains on its rows.

Read the pattern in the scores
Result patternWhat it suggestsWhat can help
Training 99%, test 72%Overfitting: familiar cases fit much better than new ones.More varied training examples, a simpler model, or stopping training earlier.
Training 62%, test 60%Underfitting: the model misses useful patterns even in training.More informative features or a more flexible model.
Both scores strong and closeUseful generalization on cases like the test set.Check whether those cases match the intended use.

Overfitting means fitting the training examples too closely, including noise or accidental patterns. If the only three training emails mentioning “invoice” happen to be spam, a model might treat that word as a reliable warning and block real invoices.

Underfitting means failing to capture the pattern because the model is too simple or insufficiently trained. A filter that only checks for “free” misses many forms of spam and flags harmless messages. Close scores alone are no comfort: two poor scores can be close.

Ask what the test represents

A test is informative about the kinds of cases it contains. Speech recordings from quiet offices are a weak check for a tool intended for noisy warehouses. Even an independent test can give a misleading picture when the situations, people, or equipment differ from real use.

Past test data also cannot settle how a model will respond to a later change in conditions. A useful review asks both whether the cases were unseen and whether they represent the work ahead. A model with a lower score on hard, varied cases can be more useful than one with a higher score on easy, narrow cases.

Key Takeaways

  • Keep test examples out of training and model selection.
  • A validation set helps choose versions while preserving a final test.
  • A large training–test gap suggests overfitting.
  • Poor results on both sets suggest underfitting.
  • A test must resemble the cases the model will meet.
2

Choose the learning signal

A delivery forecast, a set of customer groups, and a robot route all involve learning, but they supply different kinds of feedback. Look at what tells the learner it is doing well: known answers, patterns within unlabeled examples, or rewards after actions. Working through these signals makes the three main learning types easier to recognize, including products that combine several types in different stages.

2.1 Learning from known answers

Supervised learning uses examples paired with labels. The labels act as an answer key: the model learns how input features connect to known outputs. People may supply the labels directly, or records may supply them, such as completed sales or actual delivery times.

Predict a category or an amount
TaskOutputLearning task
Will this delivery be late?“Late” or “on time”Classification
How many minutes will it take?A durationRegression

Classification predicts a category, including a choice among many product types. Regression predicts a number on a scale, such as demand, price, or time. A category may have a numerical name, such as product class 1 or 2; that does not turn it into a measured amount.

Copy a nearby case

A nearest neighbor classifier stores labeled examples. For a new case, it finds the most similar example and copies that label. A subscription service records months as a customer and support tickets last month:

CustomerMonthsTicketsOutcome
A240Stayed
B34Canceled
C181Stayed
D53Canceled

A new customer has 6 months and 2 tickets. Straight-line distance to D is √((6 − 5)² + (2 − 3)²) = √2, about 1.41. Distances to B, C, and A are about 3.61, 12.04, and 18.11. D is closest, so the prediction is “will cancel.” With k-nearest neighbors, k = 3 means consulting D, B, and C. Two canceled and one stayed, so the majority still predicts cancellation.

Distance depends on scale. Months range from 3 to 24, while tickets range from 0 to 4. Rescaling features to similar ranges keeps the larger numerical range from dominating the comparison. Storing labeled neighbors is supervised learning even though it does not use a parameter-adjustment loop.

Fit a numerical relationship

Linear regression fits a straight line to labeled examples, usually by minimizing squared prediction errors. Suppose deliveries produce the learned rule “minutes = 10 + 3 × miles.” For 4 miles, multiply 3 × 4 = 12, then add 10 to predict 22 minutes. If the actual duration is 25 minutes, the prediction is 3 minutes low. The starting 10 and the extra 3 per mile are learned parameters.

Turn a score into a decision

A classifier may output a score between 0 and 1. Logistic regression is one method that does this, despite having “regression” in its name. A threshold converts the score to a category: a spam score of 0.87 exceeds a threshold of 0.5, so the message is flagged.

Labels make success measurable on separate test examples, but collecting them can be expensive. Known answers also need checking: a model can faithfully reproduce incorrect labels or unfair past decisions. Supervision supplies a learning signal, not a guarantee that the signal is right.

Key Takeaways

  • Supervised learning uses labeled examples.
  • Classification predicts categories; regression predicts amounts.
  • Nearest neighbor copies a nearby label; k-nearest neighbors combines several.
  • Feature scales affect distance comparisons.
  • A fitted line uses learned parameters to predict a number.
  • A threshold turns a classification score into a decision.

2.2 Finding groups and unusual cases

Sometimes you have many records but no answer key. Customer purchases, survey responses, and support tickets may contain useful patterns before anyone has named their groups. Unsupervised learning looks for structure in these unlabeled examples.

Form groups with clustering

Clustering groups examples by similarity. It can group customers with similar buying behavior, news stories with similar topics, or support tickets about similar problems. The method receives features, not a list of correct group memberships.

One method, k-means, starts with a chosen number of groups, k, and a starting center for each. It repeats two actions: assign each example to its nearest center, then move each center to the average of its assigned examples. Here, stop when no example changes groups.

Follow two centers

Six customers spend 20, 25, 30, 200, 210, and 220 dollars per month. Choose k = 2 and starting centers of 20 and 25.

  1. First assignment: 20 goes to center 20. The other five amounts go to center 25. The second center moves to their average: (25 + 30 + 200 + 210 + 220) ÷ 5 = 685 ÷ 5 = 137. The first stays at 20.
  2. Second assignment: 20, 25, and 30 are now nearer to 20; 200, 210, and 220 are nearer to 137. The centers move to (20 + 25 + 30) ÷ 3 = 25 and (200 + 210 + 220) ÷ 3 = 210.
  3. Check again: no spending amount changes groups. The method stops with centers at 25 and 210 dollars.

The initial centers were close together, yet repeated assignments separated the low and high amounts. People still chose two groups. A different k would ask a different grouping question.

Interpret the groups

The method does not decide what a group means. “High spenders” describes the observed amounts; “bargain hunters” claims something about motivation that those amounts alone do not establish. A cluster can reflect an accident of data collection. Check whether the grouping makes sense, stays reasonably stable when the data changes slightly, and helps the decision at hand.

Look for other kinds of structure

Anomaly detection flags cases unlike the usual pattern. A login from an unfamiliar country at 3 a.m. or an unusual machine reading may deserve attention. Unusual means worth checking; a legitimate trip or a new operating condition could explain the difference.

Dimensionality reduction turns many features into fewer summary features while retaining useful variation. For instance, 50 survey answers might be reduced to two summary scores for a chart. This can make structure easier to see, although a short summary cannot retain every detail.

Unlabeled records are often plentiful, while labels take time and money to collect. Exploring structure can therefore be a useful first step before a later supervised task. Without an answer key, usefulness and human interpretation carry more weight than a claim that the groups are the one true division of the data.

Key Takeaways

  • Unsupervised learning finds structure without target labels.
  • K-means alternates nearest-center assignments with moving centers to averages.
  • People choose k and interpret the resulting groups.
  • Anomaly detection flags unusual cases for checking.
  • Dimensionality reduction makes fewer summary features from many inputs.

2.3 Learning through actions and rewards

A learner can improve without being told the correct answer after every move. In reinforcement learning, an agent takes actions in an environment and receives numerical feedback about the outcomes. It learns a policy: a strategy for choosing actions in different situations.

Follow the reward

A warehouse robot receives +10 for delivering a box and −1 for each move. Route A takes six moves, giving 10 − 6 = 4. Route B takes four moves, giving 10 − 4 = 6. Repeated trials can teach the robot to prefer B without anyone labeling B as the correct route.

If moves cost nothing, both successful routes earn 10. That reward gives the robot no reason to favor the shorter route. The designers' aim must be reflected in what is rewarded. The agent's goal is a high total reward over time, so a tempting immediate reward can be a poor choice if it leads to a larger later penalty.

Rewards may arrive late. A board-game agent may learn only at the end whether it won. It has to connect that outcome with earlier actions, often through very many trials. Simulation allows repeated attempts where real-world mistakes would be slow, expensive, or unsafe. AlphaGo Zero, introduced in 2017, learned Go through millions of self-play games; robots can also learn actions such as grasping objects.

Try something new or repeat what works

Exploitation chooses the action that has worked best so far. Exploration tries other actions that could turn out better. A system that always repeats its current favorite can miss a better action. A system that keeps trying unfamiliar actions gives up some opportunities to benefit from what it has already learned.

A website testing two headlines faces a similar choice: showing only the current winner stops it gathering evidence about the alternative. The appropriate balance depends on how much is already known and what trying an alternative costs.

Make the reward match the purpose

Reward hacking happens when the agent gains reward in a way that misses the intended goal. A cleaning robot rewarded for “no dirt visible to its camera” could turn the camera away from dirty areas. The signal improved, but the floor did not. Testing the reward means checking the actual outcome as well as the score.

An agent aims to maximize the reward it receives, but learning may still be imperfect. Neither a well-chosen reward nor a long training run guarantees the best possible policy.

Human feedback in chat assistants

One approach called reinforcement learning from human feedback, or RLHF, begins after a language model has learned from text. People compare sample answers. A separate reward model learns to predict their preferences, and reinforcement learning adjusts the assistant toward answers earning higher rewards. This is one way to shape response behavior; it is distinct from the earlier text-prediction stage.

Supervised learning supplies known answers for examples. Reinforcement learning supplies rewards for actions and outcomes, often after a delay. Unsupervised learning finds structure without either target answers or action rewards.

Key Takeaways

  • An agent learns a policy by acting in an environment and receiving rewards.
  • The aim is reward over time, including delayed outcomes.
  • Exploration tries alternatives; exploitation uses what has worked.
  • Reward hacking improves the score while missing the intended purpose.
  • RLHF can use human preferences to train a reward model and adjust an assistant.

2.4 Match the method to the feedback

A business task's name does not tell you how a model learns. “Fraud detection” could mean learning from confirmed fraud labels, looking for unusual activity, or combining both. Identify the learning signal before assigning a type.

Ask three questions
Available signalLearning typeExample
Known target answers for examplesSupervisedPast invoices marked “duplicate” or “not duplicate.”
Features without target answersUnsupervisedGrouping customer reviews into themes not yet defined.
Rewards after actionsReinforcementAdjusting heating with rewards for comfort and penalties for energy use.

Three years of past monthly sales can supply labels for forecasting later sales. The answer is a number, so this is supervised regression. Grouping 50,000 reviews without preset themes is unsupervised clustering. The heating system takes actions that affect later outcomes, so reward-based learning fits its feedback.

Fraud detection from labeled payments is supervised classification. Finding payments unlike normal ones without fraud labels is unsupervised anomaly detection. A real product can use both signals for different parts of the task.

Labels can come from the data

Self-supervised learning creates prediction targets from the data itself. Take the sentence “The meeting has been moved to Thursday.” After the fragment “The meeting has been moved to,” the next word, “Thursday,” can supply a target. Repeating this kind of prediction across text creates many training examples without someone labeling each one by hand.

At the level of the learning signal, it resembles supervised learning: there is an input and a known target. The difference is how the target is obtained. The general approach also applies to images and audio, with tasks designed around the data available.

Semi-supervised learning combines a smaller labeled set with a larger unlabeled set. For example, 500 labeled scans and 50,000 unlabeled scans can both contribute to training. Labels are expensive, so using the unlabeled collection can make better use of the available data.

One product can learn in several stages

A chat assistant may begin with self-supervised pre-training on large text collections. Supervised fine-tuning can then use example conversations. Reinforcement learning from human feedback can further shape answers through preferences and rewards. Each stage has its own signal; a single label for the whole product can conceal those differences.

“Supervised” does not mean a person is watching every prediction. Photos that users already tagged “beach” or “dog” provide labels, even if no one was hired to create a training set. Likewise, “unsupervised” does not mean people are absent: people choose the data, the grouping approach, and how to judge its usefulness. In reinforcement learning, people design the goal and reward. Focus on what guides learning, not whether the finished tool appears to act on its own.

Key Takeaways

  • Identify known answers, unlabeled structure, or rewards for actions.
  • The same business problem can use more than one learning type.
  • Self-supervised learning creates targets from the data itself.
  • Semi-supervised learning combines labeled and unlabeled examples.
3

Inside a neural network

A neural network can seem mysterious because it contains so many connected numbers. Start with one small calculation: multiply inputs by weights, add a bias, and produce an output. Layers combine these calculations, while training changes the numbers in response to errors. Following that process makes both the power of large networks and their limits easier to understand, from recognizing images to making confident mistakes.

3.1 Weighted inputs and layers

A neural network is a model made of connected units called artificial neurons. The name comes from a loose inspiration from nerve cells. Each artificial neuron performs a small calculation; a network is not a human brain.

Work through one neuron

A neuron multiplies each input by a weight, adds the weighted inputs and a bias, then applies an activation function to produce its output. A positive weight increases the total when its input increases. A negative weight pushes in the opposite direction. The bias shifts the total by a fixed extra amount for that calculation.

A spam-detecting neuron receives three inputs: three links, 1 for containing “free,” and 1 for a sender in the contact list. Its weights are 0.5, 2.0, and −3.0; its bias is −1.

  1. Links contribute 3 × 0.5 = 1.5.
  2. “Free” contributes 1 × 2.0 = 2.0.
  3. A known sender contributes 1 × (−3.0) = −3.0.
  4. Add those contributions and the bias: 1.5 + 2.0 − 3.0 − 1 = −0.5.

Suppose a step activation returns “spam” only when the total is above 0. It returns “not spam” here. For the same message from an unknown sender, the third input becomes 0. The total becomes 1.5 + 2.0 + 0 − 1 = 2.5, so the decision changes to “spam.”

A sigmoid activation converts a total into a score between 0 and 1. It turns −0.5 into about 0.38. That is a spam score on a percentage-like scale, not a verified 38% chance unless the model's scores have been checked against real outcomes. Activations that bend the relationship between total and output allow layers to learn more complex patterns than a single straight-line calculation.

Connect the calculations

The input layer receives features. Hidden layers combine outputs from earlier layers. The output layer gives the prediction, such as “cat 0.91, dog 0.07, fox 0.02.” In a simple layered network, each layer's outputs become the next layer's inputs.

Deep learning uses neural networks with many hidden layers. In an image network, early layers tend to respond to edges and color patches, later layers to shapes and parts, and final layers to whole objects. These pattern detectors develop during training.

The weights and biases are the learned parameters. Knowledge is spread across many of them; one neuron need not hold a single understandable idea. A small network may have thousands of parameters. GPT-3, published in 2020, had about 175 billion. More parameters can capture more complex patterns and bring greater data and computing needs.

Different designs suit different inputs. Convolutional networks are designed for image patterns. Transformers learn relationships among parts of an input, including words or word pieces in text, and form the basis of large language models.

Key Takeaways

  • A neuron combines weighted inputs and a bias, then applies an activation.
  • Positive and negative weights push a total in opposite directions.
  • Input, hidden, and output layers pass numerical results onward.
  • Deep learning uses many hidden layers.
  • Learned information is distributed across weights and biases.
  • A score between 0 and 1 needs calibration before being read as a probability.

3.2 Learning by reducing error

A network begins training with weights that have not yet learned the task. From random starting weights, it repeatedly predicts, compares with labels, and adjusts its parameters.

The training loop
  1. Feed a training example through the network to make a prediction.
  2. Compare the prediction with the known label.
  3. Use a loss function to express the mistake as a number.
  4. Work out how to change the parameters and take a small update step.

A squared-error loss penalizes larger differences more strongly: an error of 4 gives a squared error of 16, while an error of 2 gives 4. Training aims to reduce average loss over the examples.

Follow one weight update

Use a tiny model that predicts “weight × input.” Its input is 2, its label is 10, and its starting weight is 3. The prediction is 3 × 2 = 6. Define the signed error as prediction minus label: 6 − 10 = −4.

For this example, use the update rule “new weight = old weight − learning rate × error × input,” with learning rate 0.1.

  • The update amount is 0.1 × (−4) × 2 = −0.8.
  • Subtract it: 3 − (−0.8) = 3.8.
  • Predict again: 3.8 × 2 = 7.6.
  • The new error is 7.6 − 10 = −2.4, closer to zero.

Repeating this update moves the weight toward 5, which would give 5 × 2 = 10. This is a worked example of a supplied update rule; a large network adjusts many weights together.

Find the direction and choose the step

Gradient descent moves parameters in directions that lower loss. Think of walking downhill in fog: the nearby slope tells you which direction descends. The learning rate controls step size. Very large steps can overshoot and jump around; very small steps can make learning slow.

Backpropagation works backward from the output through the network to calculate how changes in each weight affect the loss. Gradient descent then uses those calculations to update the weights. Backpropagation calculates the slopes; the update method takes the steps.

One pass through the full training set is an epoch. Networks often train for many epochs, using small batches of examples for updates. The largest models can require weeks or months of work on thousands of specialized chips, commonly GPUs, with substantial energy use.

Reuse an existing network

Fine-tuning adapts an already trained network to a narrower task. For example, a general image model can be adapted using 2,000 photos of a factory's own products. This is a form of transfer learning, where previous learning supports a new task.

A trained network stores adjusted parameters, not a searchable list of its examples. It can still memorize and reproduce fragments, especially repeated training content. It can also overfit or learn unfair patterns, so its test performance matters as much as that of a simpler model.

Key Takeaways

  • The loop is prediction, comparison, loss measurement, and parameter update.
  • A loss function gives training a numerical measure of error.
  • Backpropagation calculates loss sensitivity; gradient descent updates parameters.
  • The learning rate controls update size.
  • An epoch is one pass through the training set.
  • Fine-tuning adapts previous learning to a narrower task.
  • Lower training loss alone does not establish generalization.

3.3 Strengths, shortcuts, and hidden decisions

Neural networks handle patterns in images, speech, text, and video that are hard to describe with hand-written features. Their successes include speech-to-text, translation, face unlock, medical-image screening, chat assistants, and image generation. Their strengths do not remove the need to check which patterns they learned.

Match the model to the job

A large collection of images may justify a network that learns visual features. A table containing a few thousand customer records may be handled just as well by a decision tree or regression model. Simpler methods often cost less and are easier to explain. More layers and more parameters are choices with costs, not measures of business value.

Large networks need substantial data, computing power, and energy. With too little data, a large network can fit accidental details. A strong fit to the training set then masks weak performance on new cases.

A shortcut can look convincing

Suppose most wolf photos in a training collection show snow. A classifier may rely on the snowy background instead of the animal's shape. It might label a husky in snow “wolf 0.97.” The score expresses a strong model response to learned patterns; the response can still be wrong.

Checking only familiar-looking examples may miss that shortcut. New lighting, backgrounds, equipment, or groups of people can reveal weaknesses. A model trained on daytime images can struggle at night. A skin-condition model trained mainly on light skin can perform worse on dark skin.

Adversarial examples are deliberately altered inputs that cause a wrong prediction, sometimes through changes people hardly notice. Research on altered stop signs has shown how stickers can mislead an image classifier. This is a different source of unfamiliar inputs from an ordinary change in lighting, though both expose sensitivity to patterns.

Understand the explanation limit

A black box is a system whose internal decision is difficult to explain in human terms. A network's result can depend on millions or billions of interacting weights. An explanation tool might highlight influential image regions, but that gives only partial insight into the computation.

A fluent explanation generated by an assistant also needs checking; sounding like a reason does not establish that it faithfully describes the model's internal process. This matters when someone needs a clear basis for a decision, such as a refused loan.

Keep the output in context

A neural network predicts from learned patterns. A language model can produce plausible text without checking that the text is true. Smooth wording and high scores are therefore different from verified evidence.

For consequential decisions, keep a person able to review, question, and override the output, and monitor performance after deployment. Review has to be practical: the person needs enough information and time to notice when a familiar model is meeting unfamiliar cases.

Key Takeaways

  • Networks are strong with patterns in images, sound, text, and video.
  • Simpler models can suit ordinary business tables.
  • A high score can reflect a misleading shortcut.
  • Unfamiliar or deliberately altered inputs can cause failures.
  • Explanation tools provide partial insight into complex networks.
4

Understand errors and judge claims

An accuracy claim becomes useful when you can connect it to actual cases and consequences. A missed problem and a false alarm can have very different costs, even when both count as one wrong answer. By tracing errors to data, fitting, and changing conditions, you can ask better questions about a model. Counting the different outcomes then helps you judge whether it improves the work people already do.

4.1 Where wrong predictions come from

Errors can arise from the examples, their labels, the information supplied, or changes after training. A model is a simplified pattern fitted to limited data. The useful question is which errors occur and whether they are acceptable for the purpose.

Missing groups and unfair history

Unrepresentative data leaves some people or situations rare or absent. A voice assistant trained mostly on one accent may misunderstand other accents. Adding more recordings of the dominant accent leaves that gap in place.

Historical bias appears when labels reflect unfair past decisions. A hiring model trained to copy past approvals can repeat the preferences of the people who made them. In 2018, Reuters reported that Amazon had dropped an experimental résumé-screening system after finding that it marked down résumés containing “women's.” It had learned from ten years of résumés, mostly from men. Removing an explicit sensitive column can leave proxy information in other features.

Wrong labels cause another problem. If 5% of training emails are mislabeled, the model partly learns those mistakes. Incorrect test labels also distort the score used to judge it. A disagreement with a label can therefore deserve investigation instead of being treated as unquestioned model failure.

Information can be insufficient

A model cannot recover information absent from its inputs just by training longer. Floor area helps predict house prices, but price also depends on location and condition. A street name could supply a clue about location; where no input carries that information, some error remains. Chance also limits predictions, such as whether one particular person clicks an ad today.

Correlation means things vary together. Causation means one change brings about another. A prediction can use a correlation without identifying a cause. Ice cream sales and drownings both rise in hot weather. Reducing ice cream sales would not prevent drownings: weather helps explain why the two move together.

The world and the records can change

Data drift is a change in the data a deployed model encounters. Buying habits changed sharply during the COVID-19 pandemic in 2020, disrupting forecasts based on earlier patterns. A past test score cannot promise stable future performance. Monitoring can reveal the need to retrain or reconsider a model.

A feedback loop occurs when a model's outputs help shape the records it later learns from. If predictions send more inspectors to one area, more problems may be found and recorded there. The next model then sees more recorded problems from that area. Those counts mix underlying problems with the effect of inspection effort.

Check the cause before choosing a fix

Overfitting and underfitting add to these data-related causes. A large training–test gap suggests fitting familiar examples too closely; poor scores on both sets suggest missing the pattern. But a poor score alone cannot tell you whether labels, representation, missing information, or changing conditions are responsible. Inspect the cases and the circumstances behind the score.

Key Takeaways

  • Representation gaps and historical decisions can create uneven errors.
  • Wrong labels affect both learning and reported performance.
  • Missing predictive information and chance limit accuracy.
  • Prediction from correlation does not establish causation.
  • Drift changes the cases a model encounters.
  • Feedback loops let model decisions shape later training records.

4.2 Count correct answers, misses, and false alarms

Accuracy is the fraction of predictions that are correct: correct predictions ÷ all predictions. Getting 92 of 100 test cases right gives 92% accuracy. The error rate is the remaining 8%. For a yes-or-no decision, a single total hides two different mistakes.

Name the positive class first

If “spam” is positive, a false positive is a normal email wrongly flagged as spam. A false negative is spam wrongly allowed into the inbox. A true positive is correctly caught spam, and a true negative is correctly allowed normal email. “Positive” names the class being detected; it does not mean good news.

Work through the four counts

A filter sees 1,000 test emails, including 100 spam messages. It catches 90 spam messages and wrongly flags 20 normal messages.

Actual emailFlagged as spamAllowed through
Spam: 10090 true positives10 false negatives
Normal: 90020 false positives880 true negatives

This four-count table is a confusion matrix. The correct answers total 90 + 880 = 970. Accuracy is 970 ÷ 1,000 = 97%; error rate is 3%. Counting only the 90 caught spam messages ignores the correctly handled normal emails.

Watch for an easy baseline

Of 10,000 payments, 50 are fraudulent. Always answering “not fraud” gets 9,950 right, or 99.5% accuracy. It catches none of the fraud. This is the imbalance trap: a rare outcome contributes little to overall accuracy even when it is the purpose of the system. Compare with the baseline of always guessing the most common class, and inspect how many rare cases are caught.

Decide which error matters

A false negative can miss a tumor; a false positive can trigger an extra check. In a payment system, a false positive can block an honest purchase. What matters depends on the consequences, so error costs belong in the decision before choosing a threshold.

With a fixed scoring model, raising the spam threshold from 0.5 to 0.9 flags fewer messages. False positives can only stay the same or fall, while false negatives can only stay the same or rise on the same cases. Lowering it reverses those directions. There may be no change if no scores lie between the thresholds. A threshold changes decisions, not the model's learned parameters.

Numerical predictions need distances

For regression, “accuracy” usually concerns how far predictions are from actual amounts. Predictions of 22, 30, and 15 minutes against actual times of 25, 28, and 15 are off by 3, 2, and 0 minutes. Average absolute error is (3 + 2 + 0) ÷ 3, about 1.7 minutes. Use the sizes of the errors so early and late predictions do not cancel.

Compare model figures on the same or closely similar test data. A higher score on easier cases need not mean a better model. A result from one hospital or last year's customers may change with different patients, equipment, or conditions.

Key Takeaways

  • Accuracy counts all correct predictions; error rate counts all incorrect ones.
  • Define the positive class before naming false positives and false negatives.
  • A confusion matrix keeps the four outcome counts visible.
  • A majority-class baseline can expose misleading accuracy.
  • Changing a threshold trades false alarms against misses.
  • Average absolute error measures the size of numerical prediction errors.
  • Compare results on comparable test cases.

4.3 Ask what an accuracy claim means

“95% accurate” sounds precise, but it leaves out the information needed to decide whether a tool is useful. Ask about the test cases, the baseline, the types of mistakes, and the work the model is meant to improve.

Examine the test

Start with the data: how many cases were tested, where did they come from, and were they kept separate from training? Then compare them with your intended use: customers, language, equipment, groups of people, and time period. A test answers a narrower question than “Will this work everywhere?”

Suppose a résumé-screening vendor reports 95% accuracy. If 95% of its test applicants were unsuitable, rejecting everyone would also reach 95%. Ask how many suitable candidates were wrongly rejected and how many unsuitable candidates passed. The baseline and error counts show what the single score conceals.

Look within the overall result

An overall score can hide uneven results. The 2018 Gender Shades study tested three commercial systems classifying faces as male or female. Error rates were at most 0.8% for lighter-skinned men and as high as 34.7% for darker-skinned women. These are historical results from those systems and that study, not current ratings of every face-analysis tool. They show why results need to be broken down for the groups relevant to a use.

A model's output score is also different from its tested success rate. A score of 0.8 can be read as an 80% chance only when calibration has checked that interpretation. Among comparable cases assigned about 0.8, the event should occur about 80% of the time. Confident-looking scores alone cannot establish that track record.

Compare with the current process

Of 1,000 customers, 50 will leave next month. A model flags 60, including 40 of those 50. That produces 20 false alarms and 10 missed departures. Staff can call 60 people first, but value depends on call costs, what retention is worth, and the cost of missed departures. Whether calls prevent departures is a further practical question; predicting risk and improving an outcome are different tasks.

The relevant comparison is the existing process. A useful imperfect model can focus attention better than that process. A high-scoring model can still add cost if its mistakes are expensive or it sends staff in the wrong direction.

Make review possible

Automation bias is the tendency to accept a computer's answer without checking. Human oversight needs time, information, and authority to disagree. A reviewer who can only approve a prediction cannot provide meaningful correction.

Little relevant data, a sudden change in conditions, or a severe error that nobody can catch in time can make a learned prediction a poor fit. Checked rules or human judgment may be more suitable. Once a model is in use, monitor the outcomes: yesterday's test does not show whether today's error pattern has changed.

Key Takeaways

  • Ask about test size, independence, representativeness, baseline, and error costs.
  • Overall results can conceal large differences between groups.
  • A model score needs calibration to support a probability interpretation.
  • Judge usefulness against the current process and its costs.
  • Human reviewers need the ability and authority to disagree.

What Is Machine Learning examples

4 Walkthroughs

1

Follow a model from examples to a test

13 steps
Trace a prediction through rules, input data, learning, and an independent check on new cases.
  1. 1
    IntroductionWhat happens before a prediction?

    An email filter can seem to make one quick decision, but that decision rests on earlier choices about examples and answers. Follow how a system is prepared before it sees a new message.

    You will separate training from use, identify inputs and labels, and interpret training and test results. These distinctions help you judge whether a convincing demonstration says much about future work.

  2. 2
    ExampleChoose rules or examples

    A rule says, “Flag payments over 5,000 dollars made abroad.” It is easy to read, but it blocks some honest travel purchases and misses fraud outside that pattern.

    A learned model instead uses many labeled past payments to find combinations of amount, place, time, and shop type. People still choose the task and decide how the result will be used. For an exact tax calculation, an explicit checked formula is simpler.

  3. 3
    ExplanationPrepare first, predict later

    Training prepares a model using examples. Most methods adjust internal numbers called parameters, although nearest neighbor methods retain examples for later comparisons.

    Inference applies the prepared model to an input. A fraud model can score new payments throughout the day while its parameters stay fixed. Producing many predictions does not by itself mean that the model is learning from them.

  4. 4
    ChallengeA new input without a new model

    A voice tool receives a new recording, produces a transcript, and leaves its stored model unchanged. Is this training or inference? Explain the difference that matters here.

    ---reveal---

    It is inference: the tool applies a prepared model to a new input. Training would prepare or update the model from data. The fact that the recording is new does not establish that any learning happened during this use.

  5. 5
    ExampleRead a record as input and target

    A used-car record says, “2019 Toyota, 42,000 miles, sold for 18,500 dollars.” The whole sale is one example. Year, brand, and mileage are features. The selling price is the label when price is the target.

    For a new car, the model receives the available feature values and predicts the unknown sale price. A column's role depends on the task: a recorded price is a label here because it is what the model must learn to estimate.

  6. 6
    ExplanationGive categories a numerical form

    A model calculates with numbers, but not every input is an amount. Coding colors red = 1, blue = 2, and green = 3 can suggest an order that the colors do not have.

    Separate yes-or-no columns avoid that implication: “is red” is 1 for a red item and 0 otherwise. Text uses word or word-piece representations, images use pixel values, and recorded sound becomes a sequence of numerical measurements.

  7. 7
    TipCheck what the prediction can know

    Imagine predicting next month's cancellations. An old record's cancellation-processing date looks very informative, but it appears only after cancellation. It cannot be supplied when predicting the future.

    Ask when each feature becomes available. Also inspect missing values, errors, duplicates, and indirect signals: a ZIP code may carry information about a sensitive trait even after that trait's own column has been removed.

  8. 8
    ChallengeSpot the feature that arrives too late

    A team predicts the repair duration when a machine fault is reported. It records machine type, fault code at reporting, and the final completion time. Which field creates a timing problem, and why?

    ---reveal---

    The final completion time becomes available after the repair. Using it would reveal the outcome during testing but fail to supply the same input at the actual prediction time. The two other fields are available when the fault is reported.

  9. 9
    ExampleKeep new cases for testing

    A company has 1,000 labeled emails. It uses 800 to prepare the filter and keeps 200 out of training. On those 200, the filter gets 184 correct.

    The test score is 184 ÷ 200 = 92%. It measures success on the held-out cases. The 80/20 division is a common choice, not a universal rule; independence and relevance matter more than memorizing a particular split.

  10. 10
    ExplanationRead a gap between scores

    Training accuracy of 99% alongside test accuracy of 72% suggests overfitting: familiar examples fit much better than new ones. Accidental details may have become rules.

    Scores of 62% and 60% suggest underfitting, where useful patterns are missed even in training. The small gap is insufficient because both scores are poor. Strong, close results are encouraging only for cases resembling the test set.

  11. 11
    Key InsightPreserve a final check

    Trying many versions against the same final test lets that test influence the choice of model. A validation set can support those comparisons while a different test set stays untouched until the end.

    Representativeness is a separate question. A quiet-office speech test can be independent yet poorly match a noisy warehouse. Check both how the test was used and whether its cases resemble the intended work.

  12. 12
    ChallengeChoose evidence of generalization

    A support tool scores 97% on training and 65% on an independent office test. It will be used in a noisy call center. What two concerns should the team investigate?

    ---reveal---

    The large training–test gap suggests overfitting, so the strong training score is weak evidence of generalization. The office test also misses the intended noise conditions. Better fitting and a representative independent test address different parts of the problem.

  13. 13
    RecapUse the path to question a result

    When someone presents a prediction, trace it backward: what model was prepared, what inputs were available, what answers guided learning, and what unseen cases checked it?

    That path exposes different weaknesses. A feature can arrive too late, a model can memorize, or an independent test can cover the wrong environment. Each calls for a different correction.

2

Identify what guides learning

18 steps
Work through known answers, unlabeled groups, action rewards, and combined learning stages.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionLook for the learning signal
  2. 2
    ExplanationLabels can be categories or amounts
  3. 3
    ExampleFind the nearest subscriber
  4. 4
    ExampleTurn distances into a prediction
  5. 5
    ExampleApply a fitted line
  6. 6
    ChallengeRead neighbors when they disagree
  7. 7
    ExplanationStart with no target labels
  8. 8
    ExampleUpdate the first pair of centers
  9. 9
    ExampleReassign and check stability
  10. 10
    ChallengeInterpret a group without inventing a cause
  11. 11
    ExampleScore two robot routes
  12. 12
    ExplanationThink beyond the next action
  13. 13
    ChallengeCheck what earns the reward
  14. 14
    ConnectionUse preferences as feedback
  15. 15
    ExplanationCreate targets from existing data
  16. 16
    Key InsightA task name can hide different methods
  17. 17
    ChallengeSeparate a product's learning stages
  18. 18
    RecapIdentify the feedback at each stage
3

Calculate an output and a learning step

17 steps
Follow weighted inputs through a neuron, then see how a training update improves a simple prediction.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with one small calculation
  2. 2
    ExplanationCombine inputs with weights
  3. 3
    ExampleCalculate the three contributions
  4. 4
    ExampleApply the activation
  5. 5
    ExplanationPass outputs through layers
  6. 6
    ChallengeChange an input with a negative weight
  7. 7
    ExplanationMeasure how wrong a prediction is
  8. 8
    ExampleFind the signed error
  9. 9
    ExampleUpdate the weight
  10. 10
    ExampleCheck the new prediction
  11. 11
    Key InsightSeparate slopes from steps
  12. 12
    ChallengePredict the direction of an update
  13. 13
    TipChoose complexity for a purpose
  14. 14
    ExampleInspect a shortcut
  15. 15
    ConnectionKnow what an explanation can show
  16. 16
    ChallengeConnect training and a deployment failure
  17. 17
    RecapFollow both the calculation and the evidence
4

Read the errors behind an accuracy claim

16 steps
Count outcomes, test a threshold change, and judge a model against the work it is meant to improve.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTurn a percentage into questions
  2. 2
    ExplanationStart with the examples and labels
  3. 3
    AnalogyPrediction is different from intervention
  4. 4
    ExampleRecords can change because of the model
  5. 5
    ChallengeDiagnose the observation process
  6. 6
    ExplanationDefine positive before naming mistakes
  7. 7
    ExampleCount the spam outcomes
  8. 8
    ExampleCalculate accuracy from both correct groups
  9. 9
    Key InsightCompare with always guessing the common class
  10. 10
    ExplanationMove the decision cutoff
  11. 11
    ChallengeWork out what a higher threshold changes
  12. 12
    ConnectionMeasure errors in numerical predictions
  13. 13
    TipCheck the test and the confidence
  14. 14
    ExampleEvaluate a call list
  15. 15
    ChallengeJudge a proposed rollout
  16. 16
    RecapKeep evidence tied to the work

What Is Machine Learning practice questions

50 Practice Questions in 5 sets

Set 1: Patterns, inputs, and new cases10 Practice Questions

Question 1 of 10

A bakery uses past daily records to predict tomorrow's number of loaves sold. What kind of supervised task is this?
  1. Classification of bread types.
  2. Clustering of similar days.
  3. Regression of a sales amount.
  4. Reinforcement from each sale.
Show answerHide answer
Answer: C
The target is a numerical amount on a scale, so the task is regression. Classification would predict a category, such as “high demand” or “low demand.” Recorded sales can supply labels even when no employee created a separate hand-labeled answer sheet.

Question 2 of 10

A ticket-grouping system receives descriptions with no topic labels. It places several reports together. What can staff reasonably do with that group?
  1. Treat its membership as a verified cause.
  2. Use its size to measure prediction accuracy.
  3. Assume it matches a preset answer category.
  4. Inspect and interpret the similarity.
Show answerHide answer
Answer: D
Without topic labels, grouping finds similarities that people still need to interpret. A cluster of reports can suggest a shared theme, but it does not establish the cause of the problem. The group has no known membership answer key from which to calculate classification accuracy.

Question 3 of 10

A retailer trains a fraud model on chargebacks confirmed by transaction records. No one was hired to label transactions. Why is this supervised learning?
  1. The system receives a reward for each action it takes.
  2. Every prediction is checked by a person in real time.
  3. The outcomes provide known targets for examples.
  4. The transactions are grouped without target answers.
Show answerHide answer
Answer: C
Confirmed outcomes supply labels, so the model has input examples paired with known targets. Supervision describes that learning signal, not who was paid to create it. It does not require a person to watch every new prediction, and the scenario supplies no reward-based action loop.

Question 4 of 10

A vendor reports 96% accuracy on 2,000 cases; 1,920 of them were routine cases. Its tool is intended to find exceptions. What comparison should you request first?
  1. The always-routine baseline and exception misses.
  2. The count of parameters in the vendor's model.
  3. The score from using fewer training records.
  4. The training score on the vendor's routine cases.
Show answerHide answer
Answer: A
Always calling every case routine would already get 1,920 ÷ 2,000 = 96% correct. Ask how many exceptions the model catches and misses to learn whether it adds value. The test size gives context, but a large test alone does not overcome a baseline that matches the reported score.

Question 5 of 10

A payroll program applies a published overtime formula. How is its calculation best described?
  1. Learning from examples of past wages.
  2. Applying rules specified by people.
  3. Finding groups in unlabeled records.
  4. Learning actions from reward scores.
Show answerHide answer
Answer: B
The overtime formula gives an explicit rule, so the program can apply it directly. Past wage records are unnecessary for learning the calculation. Using a computer does not by itself make a task machine learning; the key distinction is whether the decision rule was learned from examples.

Question 6 of 10

A translation model is trained in January and its parameters stay fixed through March. What happens when it translates a new sentence in March?
  1. It retrains on the new sentence.
  2. It labels the sentence for testing.
  3. It validates several model versions.
  4. It uses the model for inference.
Show answerHide answer
Answer: D
The prepared model is being applied to a new input, which is inference. The parameters remain fixed, so this translation is not a new training step. Producing a response and changing the learned model are separate operations, even when both happen inside the same product.

Question 7 of 10

A table contains completed taxi trips with pickup area, distance, passenger count, and actual fare. A model will predict fare. What is the label?
  1. The actual fare.
  2. The pickup area.
  3. The trip distance.
  4. The passenger count.
Show answerHide answer
Answer: A
The label is the target output the model learns to predict, here the actual fare for a completed trip. Distance may be highly useful, but it is an input feature. The label is identified by the prediction task, not by which column has the strongest connection to the outcome.

Question 8 of 10

A model will predict repair delays when a request arrives. Its old records include request time, machine age, final repair duration, and fault code available at arrival. What field would give away the target?
  1. The fault code recorded at arrival.
  2. The age of the machine at arrival.
  3. The completed repair duration.
  4. The time the request was received.
Show answerHide answer
Answer: C
Final repair duration becomes known after the repair, so it is unavailable when the request arrives. Supplying it would give away what the model is meant to predict. The fault code is available at arrival, so its connection to a delay does not create the same timing problem.

Question 9 of 10

A model correctly labels 216 of 240 separate test records. What is its test accuracy?
  1. 24%
  2. 90%
  3. 10%
  4. 89%
Show answerHide answer
Answer: B
Divide the correct predictions by all test predictions: 216 ÷ 240 = 0.9, or 90%. The 24 wrong records are a count, not a percentage. Dividing those 24 by 240 gives the error rate of 10%, which describes mistakes instead of correct answers.

Question 10 of 10

A classifier scores 98% on training examples and 68% on new test examples. What fitting problem does this pattern suggest?
  1. Overfitting to the training cases.
  2. Underfitting both collections of cases.
  3. Strong generalization across both sets.
  4. Poor calibration of output scores.
Show answerHide answer
Answer: A
The model fits familiar training cases much better than new ones, which suggests overfitting. Underfitting would usually show poor results even on the training set. These two accuracy figures do not tell us whether output scores correspond to real probabilities; calibration is a separate check.
Set 2: Weights, layers, and learning steps10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A neuron has a negative weight for an input. With everything else fixed, what happens to its weighted sum when that input increases?
  1. It stays unchanged.
  2. It always becomes positive.
  3. It decreases.
  4. It increases.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A neuron has inputs 4 and 1, weights 0.5 and −1, and bias −0.5. It returns “flag” only if its sum is above 0. What is the result?
  1. Sum −0.5; do not flag.
  2. Sum 0.5; flag.
  3. Sum 1.5; flag.
  4. Sum 3.5; flag.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What does one epoch count during neural-network training?
  1. One comparison of candidate models.
  2. One prediction on the final test set.
  3. One update for a single model weight.
  4. One full pass through the training set.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A model predicts weight × input. Its input is 3, label is 12, and weight is 2. Using new weight = old weight − 0.1 × (prediction − label) × input, what is the next weight?
  1. 3.8
  2. 2.6
  3. 0.2
  4. 5.6
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A network's update steps repeatedly jump past a low-loss region, increasing and decreasing the same weight sharply. What change directly addresses the described step-size problem?
  1. Lower the learning rate for smaller steps.
  2. Increase the number of output categories.
  3. Raise the learning rate for larger steps.
  4. Add the final test examples to training.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Two layered networks multiply and add inputs, but only one uses activations that bend the input–output relationship. Why does that matter for learning complex patterns?
  1. Linear layers capture the same curves if their widths increase.
  2. Nonlinear activations let layers model curved relationships.
  3. Additional linear layers supply nonlinearity through composition.
  4. Biases alone let stacked linear layers model curved relationships.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A warehouse has 1,500 labeled rows of routine inventory data. A team wants an inexpensive model whose decisions are easy to explain. What is a sensible starting comparison?
  1. An unlabeled clustering model as the known answer key.
  2. Only networks with the greatest parameter counts.
  3. Only image networks because all data becomes numbers.
  4. Simple regression or trees against a neural network.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A classifier labels damaged packages very well in studio photos but poorly on a moving conveyor in dim light. Its studio test was independent of training. What check best addresses the gap?
  1. Repeat the same studio test with labels hidden.
  2. Treat the independent studio score as sufficient.
  3. Test separate examples from the conveyor conditions.
  4. Choose the highest score from the studio predictions.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A company adapts an existing image network to recognize its own component defects using a smaller collection of labeled photos. What is this process called?
  1. Clustering.
  2. Fine-tuning.
  3. Inference.
  4. Final testing.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A model assigns scores near 0.9 to 400 comparable cases, but the event occurs in only 240. What does this show about reading those scores as probabilities?
  1. They show that exactly 90% of all predictions are correct.
  2. They show that all low-scoring cases are misclassified.
  3. They establish a 90% chance for each future case.
  4. Those scores overstate the observed event frequency.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Errors, thresholds, and changing data10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A detector defines a cracked item as positive. It marks an intact item “cracked.” What kind of error is this?
  1. False positive.
  2. True positive.
  3. False negative.
  4. True negative.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

In 500 test parts, 40 are faulty. A detector catches 30 faulty parts and flags 15 good parts. What is its accuracy?
  1. 90%
  2. 94%
  3. 95%
  4. 97%
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Among 4,000 transactions, 20 are fraud. Detector M always says “honest”; detector N catches 15 fraud cases and flags 25 honest ones. How do their accuracies and usefulness for finding fraud compare?
  1. M: 99.25%, N: 99.5%; M catches more fraud.
  2. M: 99.25%, N: 99.5%; N catches more fraud.
  3. M: 99.5%, N: 99.25%; M catches more fraud.
  4. M: 99.5%, N: 99.25%; N catches more fraud.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A fixed detector flags scores above its threshold. On the same cases, its threshold rises from 0.4 to 0.8. How can the error counts change?
  1. False positives can rise; false negatives can fall.
  2. False positives can fall; false negatives can rise.
  3. Both types of error must rise.
  4. Both types of error must fall.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A hiring model learns from past approvals that favored one college over equally qualified applicants from other colleges. It repeats that preference. What source of error should be investigated?
  1. Poor coverage of the college in the examples.
  2. Unfair preferences in past approval labels.
  3. Overfitting caused by too many training epochs.
  4. Changed applicant patterns after deployment.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A forecast misses demand after a major change in commuting patterns. It had performed well on held-out records from before the change. What is the best explanation supported by this information?
  1. Test cases overlapped the training collection.
  2. Incorrect labels distorted the original training.
  3. Current conditions differ from the old test.
  4. Limited flexibility caused weak fit to the old data.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A routing model sends more quality inspectors to plant R. More defects are then recorded at R, and retraining sends even more inspectors there. Why is a feedback loop possible?
  1. Routing changes the records used in retraining.
  2. Records separate defects from inspection effort.
  3. Inspection outcomes do not depend on routing.
  4. Extra observations establish R's true defect rate.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A service predicts job lengths of 12, 18, and 30 minutes. Actual lengths are 15, 16, and 25 minutes. What is the average absolute error?
  1. 0 minutes.
  2. 2 minutes.
  3. 5 minutes.
  4. About 3.3 minutes.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A team chooses its model after comparing 25 versions on the same “final test” records. Why is that score weaker as an independent final check?
  1. The labels become features as soon as they are counted.
  2. Using several versions makes supervised learning unsupervised.
  3. The test results influenced which version was chosen.
  4. Repeated evaluation always decreases the reported accuracy.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Two models score 94% and 89%, but the first is tested on easy office recordings and the second on varied factory recordings. What conclusion is justified?
  1. Comparable test cases are needed to rank their performance.
  2. The second generalizes better because its cases are harder.
  3. The first generalizes better because its percentage is higher.
  4. Their scores can be averaged to rank both models together.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Putting predictions to work10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A control agent adjusts stock orders and receives rewards based on later shortages and waste. What learning signal does it receive?
  1. Categories assigned to each product by staff.
  2. Rewards following its ordering actions.
  3. Hidden words recovered from order descriptions.
  4. Groups formed from unlabeled sales records.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A classifier receives colors coded as amber = 1, violet = 2, and white = 3. Why might separate yes-or-no columns be more suitable?
  1. They guarantee equal prediction accuracy for every color.
  2. They make white a verified threefold increase over amber.
  3. They remove the need for numerical input representations.
  4. They avoid suggesting a numerical order among colors.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A model predicts machine failures using a maintenance flag. Managers plan to remove the flag to prevent failures. Why is that reasoning incomplete?
  1. The intervention is justified once the model generalizes well.
  2. The intervention is justified if the flag has a large weight.
  3. Predictive association alone does not establish causation.
  4. The intervention is justified if the model has calibrated scores.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A network trained to identify faulty seals often saw faulty seals on a red mat and good seals on a gray mat. It now flags good seals on red mats. What check most directly probes a learned shortcut?
  1. Test both seal conditions across both mat colors.
  2. Add more faulty-red and good-gray photo pairs.
  3. Balance faulty and good counts on their original mats.
  4. Test new photos with each seal on its usual mat.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A tool flags 45 of 600 accounts for calls. Of 30 accounts that later close, 24 were flagged. What error counts should staff consider?
  1. 6 false alarms and 21 missed closures.
  2. 24 false alarms and 15 missed closures.
  3. 21 false alarms and 6 missed closures.
  4. 15 false alarms and 24 missed closures.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An account-screening tool has 98% accuracy overall but 70% for a small customer group. The group matters to the intended use. How should the overall claim be assessed?
  1. Accept the overall figure because the group is small.
  2. Investigate the group's error pattern alongside overall results.
  3. Replace the overall figure with 70% for every customer.
  4. Assume the group's labels are wrong because scores differ.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A detector flags scores above 0.5. Four cases have scores and true statuses: 0.9 faulty, 0.7 sound, 0.6 faulty, 0.2 sound. What changes if the threshold becomes 0.8?
  1. One false alarm is removed; no fault is newly missed.
  2. No false alarm is removed; one fault is newly missed.
  3. One false alarm is added; one fault is newly caught.
  4. One false alarm is removed; one fault is newly missed.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A model scores 61% on training data and 59% on a representative independent test. Why is the small gap insufficient evidence of a useful fit?
  1. Both scores are poor, a pattern consistent with underfitting.
  2. A useful model must always score exactly the same on both.
  3. The gap shows every test example entered the training set.
  4. Independent test cases cannot measure generalization.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

In network training, what is the distinct job of backpropagation before a gradient-descent update?
  1. Apply the gradient-descent parameter changes.
  2. Choose a learning rate by checking the final test set.
  3. Measure final accuracy without training labels.
  4. Calculate how parameter changes affect the loss.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A manager adds a human approval step, but reviewers see only the model recommendation and must approve within two seconds. What is the main weakness in this oversight?
  1. Give reviewers case evidence and enough time to assess it.
  2. Require a second approval under the same time and information limits.
  3. Raise the model's accuracy target before enabling case overrides.
  4. Retain rapid approval and review only total monthly accuracy.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Labels, groups, and rewards10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A store predicts whether an order will be returned, using orders labeled “returned” or “kept.” What task does the model learn?
  1. Regression of a return amount.
  2. Clustering of order descriptions.
  3. Reinforcement from return rewards.
  4. Classification of return outcomes.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A trained line predicts packing minutes = 7 + 2 × items. For an order of 9 items that actually took 29 minutes, how far off is the prediction?
  1. 4 minutes too low.
  2. 4 minutes too high.
  3. 11 minutes too low.
  4. 11 minutes too high.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

The three closest labeled records to a new case have labels “renew,” “cancel,” and “cancel,” in that order of closeness. What do one-neighbor and three-neighbor classifiers predict?
  1. Both predict renewal.
  2. Both predict cancellation.
  3. One-neighbor: renew; three-neighbor: cancel.
  4. One-neighbor: cancel; three-neighbor: renew.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

K-means assigns values 6, 9, and 15 to one cluster. Where does that cluster's center move?
  1. 9
  2. 10
  3. 12
  4. 15
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An unlabeled machine-monitoring system flags a reading unlike the usual pattern. What does the flag establish?
  1. The machine has a confirmed mechanical fault.
  2. The recorded value has the wrong manual label.
  3. The model has learned the cause of equipment failure.
  4. The reading deserves checking because it is unusual.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A robot earns +15 for a completed pickup and −2 per move. Successful route P takes 4 moves and successful route Q takes 6. What totals do they earn?
  1. P earns 11; Q earns 9.
  2. P earns 7; Q earns 3.
  3. P earns 23; Q earns 27.
  4. P earns 8; Q earns 12.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A controller earns a reward whenever its sensor reports a comfortable room. It learns to warm the sensor while the room stays cold. What explains the result?
  1. It exploited the rewarded sensor measurement.
  2. Supervised labels specified an incorrect temperature.
  3. The controller learned without receiving any signal.
  4. Exploration found a genuinely comfortable room.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A training program hides part of each existing sentence and uses that hidden text as the prediction target. Where do its labels come from?
  1. A reward after an action.
  2. A human naming each group.
  3. The original text itself.
  4. A separate final test score.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A nearest-neighbor model compares account balance in dollars, ranging into tens of thousands, and late-payment count, ranging from 0 to 5. Why could rescaling change the nearest record?
  1. Rescaling makes each feature equally predictive of cancellation.
  2. Rescaling prevents unusual cases from influencing distance.
  3. Rescaling changes each feature's distance contribution.
  4. Rescaling preserves the original distances while changing labels.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A team has 300 labeled product photos and 12,000 unlabeled photos, and uses both collections in training. What learning approach does this describe?
  1. Semi-supervised learning.
  2. Fully supervised learning.
  3. Reinforcement learning.
  4. Unsupervised learning alone.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

79 Key Terms, each with its definition

A

Accuracy
Accuracy is the share of all predictions that are correct, counting correct positive and correct negative results together on evaluated cases.
A detector with 970 correct answers among 1,000 test cases has an overall test accuracy of 97%.
Activation function
An activation function converts a neuron's weighted total into an output; nonlinear activations help layers capture complex relationships.
A step activation returns “spam” only when the weighted total is above zero in a simple example.
Adversarial example
An adversarial example is an input deliberately modified to cause a wrong model prediction, sometimes through changes people hardly notice.
Researchers have used stickers on a stop sign to make an image recognizer respond incorrectly to it.
Agent
An agent is the decision-making learner in reinforcement learning that chooses actions and receives feedback about their outcomes.
A warehouse robot is the agent; its movement choices affect what it encounters during a delivery.
Anomaly detection
Anomaly detection identifies examples that differ from the usual data pattern and flags them for attention without establishing their cause.
A login at an unfamiliar time and place prompts a check even though travel could explain the activity.
Artificial neuron
An artificial neuron is a computational unit that combines weighted inputs with a bias and applies an activation function to the total.
A spam neuron combines link count, a word indicator, and sender information to produce a decision.
Automation bias
Automation bias is the tendency to accept a computer's output without enough checking, even when evidence or circumstances call it into question.
A rushed reviewer approves a screening recommendation without examining the case details behind it.
Average absolute error
Average absolute error is the mean distance between numerical predictions and actual values, with signs removed so opposite errors do not cancel.
Prediction errors of 3, 2, and 0 minutes give an average absolute error of about 1.7 minutes.

B

Backpropagation
Backpropagation calculates how parameter changes affect a network's loss by working backward through its layers from the output.
After a prediction, backpropagation supplies slopes that the update method uses to change the weights.
Baseline
A baseline is a simple reference result used to judge whether a model adds value, such as always predicting the most common class.
If only 0.5% of payments are fraud, always saying “honest” already produces 99.5% accuracy.
Bias
A bias is an extra learned amount added to a neuron's weighted inputs, shifting its total before the activation function is applied.
A bias of −1 lowers the neuron's total by one even when every input contribution remains unchanged.
Black box
A black box is a system whose internal process is difficult to explain faithfully in human terms, even when its inputs and outputs are visible.
An image heat map can show influential regions while leaving much of a network's calculation unexplained.

C

Calibration
Calibration checks whether model scores match observed event frequencies, supporting or challenging their interpretation as probabilities.
For comparable cases scored near 0.8, the event should occur about 80% of the time if those scores are calibrated.
Categorical feature
A categorical feature records membership in a group, such as a product type or color, and needs a numerical representation for model calculations.
Separate yes-or-no columns represent red, blue, and green without treating them as ordered amounts.
Causation
Causation is a relationship in which changing one factor brings about a change in another, requiring more support than predictive association.
A feature that predicts a machine failure need not be a factor whose removal would prevent the failure.
Classification
Classification is a supervised prediction task whose output is a category, such as whether a payment is fraudulent or honest.
An invoice model assigns “duplicate” or “not duplicate” using patterns from previously labeled invoices.
Clustering
Clustering divides examples into groups whose members are similar according to the features and comparison method chosen for the task.
Support tickets with similar descriptions are grouped so staff can investigate a possible shared issue.
Confusion matrix
A confusion matrix is a table of actual and predicted categories that separates correct positive, correct negative, false-positive, and false-negative counts.
A spam table shows both normal messages blocked and spam messages missed instead of hiding them in one score.
Convolutional network
A convolutional network is a neural network design suited to learning patterns in images, including local shapes and visual structures.
An image-classification system can learn useful visual features without people writing every shape rule.
Correlation
Correlation is a relationship in which quantities vary together, making one potentially useful for prediction without establishing cause.
Ice cream sales and drownings can both increase in hot weather even though one does not cause the other.

D

Data drift
Data drift is a change in the data encountered over time that can make patterns learned from older records less useful for current predictions.
A sudden shift in buying habits can disrupt a demand model that performed well on earlier shopping records.
Deep learning
Deep learning is machine learning using neural networks with many hidden layers that can learn complex patterns from suitable example data.
An image model can develop responses to edges, parts, and objects at different depths during training.
Dimensionality reduction
Dimensionality reduction creates fewer summary features from many original features while retaining useful variation between examples.
Fifty survey answers can be summarized by two scores so that patterns can be displayed on a chart.

E

Environment
An environment is the situation in which a reinforcement learning agent acts, with conditions that change as actions produce outcomes.
A simulated warehouse supplies the layout, obstacles, and delivery outcomes experienced by a learning robot.
Epoch
An epoch is one complete pass through the training set, during which a training process may perform many separate parameter updates.
A network trained for several epochs encounters the full collection several times during learning.
Error rate
The error rate is the share of all predictions that are wrong, equal to 100% minus accuracy when both describe the same evaluated cases.
If a model is right on 92% of a test set, the remaining 8% of cases make up its error rate.
Example
An example is one case described in a data set, such as a single customer, email, image, or transaction, usually represented by one table row.
Each completed house sale supplies one example with property details and the price that was paid.
Exploitation
Exploitation means choosing the action with the best known results so far, gaining from previous learning instead of testing an alternative.
A headline system shows its current best-performing headline to benefit from what its trials have found.
Exploration
Exploration means trying alternatives to gather information about actions that could work better than the current best-known choice.
A headline system occasionally shows a different headline to learn whether its response rate is better.

F

False negative
A false negative is an actual positive case assigned to the negative class, so the model misses an event it was meant to detect.
With spam defined as positive, a spam message wrongly allowed into the inbox is a false negative.
False positive
A false positive is a case assigned to the defined positive class even though its actual class is negative, creating a false alarm.
With fraud defined as positive, an honest payment wrongly flagged as fraud is a false positive.
Feature
A feature is a measurable or representable property supplied to a model as input so that it can make a prediction about a case.
Floor area and neighborhood can serve as features when a model estimates the selling price of a house.
Feedback loop
A feedback loop occurs when model predictions shape actions or observations that become later training data and reinforce the model's patterns.
More inspections in one area produce more recorded problems there, which can draw still more inspections.
Fine-tuning
Fine-tuning adapts an existing trained model to a narrower task through additional training, making use of previously learned patterns.
A general image model is adapted using 2,000 photos of a factory's products to recognize their defects.

G

Generalization
Generalization is a model's ability to perform well on new cases beyond the examples used to prepare it during training.
A classifier that handles unfamiliar product photos well shows learning beyond its original photos.
Gradient descent
Gradient descent updates model parameters in directions that locally reduce loss, taking steps whose size depends on the learning rate.
A model increases a weight slightly when that change is calculated to lower its prediction loss.

H

Hidden layer
A hidden layer is a group of neurons between a network's input and output that combines earlier outputs into new numerical patterns.
An intermediate image layer can respond to shapes formed from simpler patterns detected by earlier layers.
Historical bias
Historical bias is unfairness in past decisions or records that can pass into the patterns a model learns and repeats in new cases.
A hiring model trained on unfair past approvals can carry their preferences into later applicant screening.
Human oversight
Human oversight is a process in which people have the information, time, and authority needed to examine, question, and override model outputs.
A reviewer can investigate a suspicious recommendation and change the decision before it affects an applicant.

I

Inference
Inference is using a prepared model to produce an output for an input, without requiring the model to learn again from that case.
A fixed speech model transcribes a new call using the numerical patterns it learned during training.

K

K-means
K-means is a clustering method that repeats nearest-center assignment and moves each center to the mean of its assigned examples.
In one set of spending values, two chosen centers move toward averages of 25 and 210 dollars as the values separate into two groups.
K-nearest neighbors
A k-nearest neighbors classifier consults k nearby labeled examples and predicts the most common label among them, using several comparisons.
With three nearby cases labeled “cancel,” “cancel,” and “stay,” the majority prediction is cancellation.

L

Label
A label is the known target answer attached to a training example, which a supervised model learns to predict from the input features.
The final selling price is the label in a collection used to train a house-price prediction model.
Learning rate
The learning rate controls the size of parameter-update steps during training, affecting how quickly and steadily the model can improve.
An excessive learning rate makes updates jump past a low-loss region instead of approaching it steadily.
Linear regression
Linear regression fits a straight-line relationship between features and a numerical target, usually by reducing squared prediction errors.
A fitted delivery line adds three minutes per mile to a starting estimate of ten minutes for a trip.
Logistic regression
Logistic regression is a classification method that produces a score between 0 and 1, which a threshold can turn into a category decision.
A spam score of 0.87 causes a flag when the decision rule flags messages scoring above 0.5.
Loss function
A loss function assigns a numerical value to prediction error so that training has a measure to reduce across its examples.
Squared error assigns 16 to a difference of 4 and 4 to a difference of 2, penalizing larger errors more.

M

Machine learning
Machine learning is an approach to AI in which a system builds useful patterns from examples instead of relying on every rule being hand-written.
A mail service learns from labeled messages to recognize patterns that often appear in spam.
Model
A model is the stored structure that maps input information to an output, such as a category, prediction, or score, after learning from examples.
A trained payment model receives transaction details and returns a score indicating possible fraud.
Monitoring
Monitoring is continued checking of a deployed model's results and encountered cases to notice changing error patterns or declining usefulness.
A service checks recent outcomes after a demand model goes live to see whether its past performance still holds.

N

Nearest neighbor
A nearest neighbor classifier labels a new case by finding the most similar stored labeled example and copying that example's label.
A service compares a new subscriber with past subscribers to predict whether that person may cancel.
Neural network
A neural network is a model made of connected artificial neurons whose numerical operations combine inputs to produce predictions.
An image network passes pixel information through layers to produce scores for possible object categories.

O

Overfitting
Overfitting occurs when a model fits training examples and their accidental details too closely, leading to weaker performance on new cases.
A filter scores 99% on familiar messages but 72% on separate messages after learning a narrow word pattern.

P

Parameter
A parameter is an internal value learned during model preparation, such as a neural network's weight or bias, that affects predictions.
Fine-tuning changes learned parameter values to adapt a network to a company's narrower recognition task.
Pixel
A pixel is one small picture element in a digital image, commonly represented in a color photo by red, green, and blue brightness values.
A 100 × 100 color image has 10,000 pixels, commonly giving a model 30,000 brightness values to process.
Policy
A policy is an agent's strategy for choosing an action in each situation, learned or adjusted to pursue rewards over time.
A robot's policy can favor a route that has delivered boxes with fewer costly movements in past trials.
Pre-training
Pre-training is an initial stage of learning from a broad collection of data before a model is adapted or further trained for narrower uses.
An assistant can learn general text patterns before training on example conversations for later use.
Proxy feature
A proxy feature carries indirect information about another trait, allowing that trait to affect predictions even when it is not a direct input.
A ZIP code can carry clues about income, so deleting the income column can leave a related signal.

R

Regression
Regression is a supervised prediction task whose output is an amount on a numerical scale, such as a price, duration, or demand level.
A delivery model estimates 22 minutes for a trip instead of assigning it the category “on time.”
Reinforcement learning
Reinforcement learning trains an agent to choose actions through rewards from an environment, aiming for a high total reward over time.
A robot improves its route choices after deliveries earn rewards and each movement carries a penalty.
Reward
A reward is a numerical signal about an action's outcome that guides reinforcement learning; a negative value can serve as a penalty.
When a robot earns +10 for a delivery and −1 per move, shorter successful routes earn more reward.
Reward hacking
Reward hacking occurs when an agent exploits a reward signal in a way that earns a high score while missing the intended real-world goal.
A cleaning robot hides dirt from its camera, earning a clean-view reward while leaving the floor dirty.
RLHF
Reinforcement learning from human feedback (RLHF) can use a reward model learned from people’s preferences to guide further model training.
People compare sample assistant responses before a reward model learns to score similar responses.

S

Self-supervised learning
Self-supervised learning creates prediction targets from the data itself, allowing training with known answers without hand-labeling each case.
A sentence supplies its own next-word target when the final word is hidden from the model input.
Semi-supervised learning
Semi-supervised learning uses labeled examples together with a larger unlabeled collection, making use of data without supplied target answers.
A small set of labeled scans contributes to training alongside a much larger set without labels.
Sigmoid
A sigmoid is an activation function that smoothly converts a numerical total into a score between 0 and 1 without itself verifying a probability.
A total of −0.5 becomes about 0.38, but using that as a chance of spam needs a calibration check.
Supervised learning
Supervised learning learns a relationship between input features and known target labels using examples that pair the two together.
Recorded delivery times let a service learn to predict the duration of a new delivery from its details.

T

Test set
A test set is a separate collection of examples held out from training and model selection to check the finished model on unseen cases.
A filter's final evaluation uses messages it has not previously used to learn or choose a version.
Threshold
A threshold is the cutoff that turns a classification score into a positive or negative decision, changing the balance of false alarms and misses.
Raising a fraud cutoff flags fewer payments but can allow additional fraudulent transactions through.
Training
Training is the process of preparing a model from examples, often by adjusting its internal parameters to reduce errors on those examples.
A team uses past deliveries and their recorded durations to prepare a model before using it on new orders.
Training set
A training set is the collection of examples used to prepare a model, shaping the patterns or parameters it will later use for predictions.
A company uses 800 labeled messages for learning and keeps another 200 out of that process.
Transfer learning
Transfer learning reuses learning from an existing model to support a new task, often reducing the amount of task-specific data needed.
Fine-tuning an existing image network lets a factory reuse visual learning instead of starting from scratch.
Transformer
A transformer is a neural network design that learns relationships among parts of an input, such as words or word pieces in text.
Large language models use transformers to process relationships among the parts of a text sequence.

U

Underfitting
Underfitting occurs when a model fails to capture useful patterns, performing poorly even on the examples it used for training.
A filter that only checks one word misses varied spam and performs poorly in both training and testing.
Unrepresentative data
Unrepresentative data covers some groups or situations poorly, leaving a model with limited examples of cases it may later need to handle.
A voice model trained mostly on one accent may struggle with callers who speak with other accents.
Unstructured data
Unstructured data includes text, images, sound, and video whose useful patterns are not already organized as a simple table of named fields.
Speech recognition must find useful patterns within an audio signal, not just read a few customer columns.
Unsupervised learning
Unsupervised learning looks for structure in example features without known target labels, such as groups, unusual cases, or summaries.
A team explores thousands of unlabeled customer comments to find themes it has not named in advance.

V

Validation set
A validation set is a separate collection used to compare and choose model versions while preserving a different test set for a final check.
A team compares candidate filters using validation messages before opening the final test collection.

W

Weight
A weight is a model parameter that multiplies an input, controlling the size and direction of that input's contribution to a neuron's total.
A negative known-sender weight can lower the spam total when an email comes from someone in contacts.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started