- Learn
- Computer Science & IT
- Digital Skills
- AI Literacy and Generative AI at Work
- What Is Machine Learning
What Is Machine Learning? How Machines Learn from Data
BeginnerLesson 2 of 8 in AI Literacy and Generative AI at Work Course
What you will learn
- 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 examplesExplain 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 labelsIdentify 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 learningExplain why labeled data is split into a training set and a test set, and recognize overfitting and underfitting from a model's results.
- Compare hand-written rules with learning from examples
- 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 regressionDescribe 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 labelsDescribe 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 rewardsDescribe 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 learningDecide which type of learning fits a task from the data and feedback available, and recognize self-supervised learning and combined approaches in real products.
- Explain supervised learning: classification and regression
- 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 layersExplain 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 errorsFollow 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 failRecognize the tasks where neural networks excel, and explain their typical weaknesses: data needs, hidden reasoning, confident mistakes and sensitivity to unfamiliar inputs.
- Describe artificial neurons, weights and layers
- 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 causesExplain how unrepresentative or biased data, wrong labels, missing information and a changing world lead to wrong predictions.
- Calculate and interpret accuracy and types of errorsCalculate 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 responsiblyAsk how a reported accuracy was measured, and decide how far to rely on a model's predictions in everyday work.
- Trace model errors to their causes
What Is Machine Learning study guide
1From 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
| Approach | What people supply | What the computer does |
|---|---|---|
| Hand-written rules | Instructions such as “Flag payments over 5,000 dollars made abroad.” | Applies those instructions to each payment. |
| Machine learning | Example 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 pattern | What it suggests | What 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 close | Useful 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.
2Choose 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
| Task | Output | Learning task |
|---|---|---|
| Will this delivery be late? | “Late” or “on time” | Classification |
| How many minutes will it take? | A duration | Regression |
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:
| Customer | Months | Tickets | Outcome |
|---|---|---|---|
| A | 24 | 0 | Stayed |
| B | 3 | 4 | Canceled |
| C | 18 | 1 | Stayed |
| D | 5 | 3 | Canceled |
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.
- 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.
- 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.
- 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 signal | Learning type | Example |
|---|---|---|
| Known target answers for examples | Supervised | Past invoices marked “duplicate” or “not duplicate.” |
| Features without target answers | Unsupervised | Grouping customer reviews into themes not yet defined. |
| Rewards after actions | Reinforcement | Adjusting 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.
3Inside 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.
- Links contribute 3 × 0.5 = 1.5.
- “Free” contributes 1 × 2.0 = 2.0.
- A known sender contributes 1 × (−3.0) = −3.0.
- 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
- Feed a training example through the network to make a prediction.
- Compare the prediction with the known label.
- Use a loss function to express the mistake as a number.
- 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.
4Understand 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 email | Flagged as spam | Allowed through |
|---|---|---|
| Spam: 100 | 90 true positives | 10 false negatives |
| Normal: 900 | 20 false positives | 880 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
1Follow a model from examples to a test
13 steps
- 1IntroductionWhat 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.
- 2ExampleChoose 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.
- 3ExplanationPrepare 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.
- 4ChallengeA 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.
- 5ExampleRead 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.
- 6ExplanationGive 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.
- 7TipCheck 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.
- 8ChallengeSpot 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.
- 9ExampleKeep 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.
- 10ExplanationRead 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.
- 11Key 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.
- 12ChallengeChoose 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.
- 13RecapUse 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.
2Identify what guides learning
18 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLook for the learning signal
- 2ExplanationLabels can be categories or amounts
- 3ExampleFind the nearest subscriber
- 4ExampleTurn distances into a prediction
- 5ExampleApply a fitted line
- 6ChallengeRead neighbors when they disagree
- 7ExplanationStart with no target labels
- 8ExampleUpdate the first pair of centers
- 9ExampleReassign and check stability
- 10ChallengeInterpret a group without inventing a cause
- 11ExampleScore two robot routes
- 12ExplanationThink beyond the next action
- 13ChallengeCheck what earns the reward
- 14ConnectionUse preferences as feedback
- 15ExplanationCreate targets from existing data
- 16Key InsightA task name can hide different methods
- 17ChallengeSeparate a product's learning stages
- 18RecapIdentify the feedback at each stage
3Calculate an output and a learning step
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with one small calculation
- 2ExplanationCombine inputs with weights
- 3ExampleCalculate the three contributions
- 4ExampleApply the activation
- 5ExplanationPass outputs through layers
- 6ChallengeChange an input with a negative weight
- 7ExplanationMeasure how wrong a prediction is
- 8ExampleFind the signed error
- 9ExampleUpdate the weight
- 10ExampleCheck the new prediction
- 11Key InsightSeparate slopes from steps
- 12ChallengePredict the direction of an update
- 13TipChoose complexity for a purpose
- 14ExampleInspect a shortcut
- 15ConnectionKnow what an explanation can show
- 16ChallengeConnect training and a deployment failure
- 17RecapFollow both the calculation and the evidence
4Read the errors behind an accuracy claim
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTurn a percentage into questions
- 2ExplanationStart with the examples and labels
- 3AnalogyPrediction is different from intervention
- 4ExampleRecords can change because of the model
- 5ChallengeDiagnose the observation process
- 6ExplanationDefine positive before naming mistakes
- 7ExampleCount the spam outcomes
- 8ExampleCalculate accuracy from both correct groups
- 9Key InsightCompare with always guessing the common class
- 10ExplanationMove the decision cutoff
- 11ChallengeWork out what a higher threshold changes
- 12ConnectionMeasure errors in numerical predictions
- 13TipCheck the test and the confidence
- 14ExampleEvaluate a call list
- 15ChallengeJudge a proposed rollout
- 16RecapKeep evidence tied to the work
What Is Machine Learning practice questions
Set 1: Patterns, inputs, and new cases10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Weights, layers, and learning steps10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Accuracy
Activation function
Adversarial example
Agent
Anomaly detection
Artificial neuron
Automation bias
Average absolute error
B
Backpropagation
Baseline
Bias
Black box
C
Calibration
Categorical feature
Causation
Classification
Clustering
Confusion matrix
Convolutional network
Correlation
D
Data drift
Deep learning
Dimensionality reduction
E
Environment
Epoch
Error rate
Example
Exploitation
Exploration
F
False negative
False positive
Feature
Feedback loop
Fine-tuning
G
Generalization
Gradient descent
H
Hidden layer
Historical bias
Human oversight
I
Inference
K
K-means
K-nearest neighbors
L
Label
Learning rate
Linear regression
Logistic regression
Loss function
M
Machine learning
Model
Monitoring
N
Nearest neighbor
Neural network
O
Overfitting
P
Parameter
Pixel
Policy
Pre-training
Proxy feature
R
Regression
Reinforcement learning
Reward
Reward hacking
RLHF
S
Self-supervised learning
Semi-supervised learning
Sigmoid
Supervised learning
T
Test set
Threshold
Training
Training set
Transfer learning
Transformer
U
Underfitting
Unrepresentative data
Unstructured data
Unsupervised learning
V
Validation set
W
Weight
- 1What Is AI
- 2What Is Machine Learning
- 3What Is Generative AI
- 4Prompt Engineering Basics
- 5AI Hallucinations and Bias
- 6AI Tools for Work
- 7Responsible AI
- 8EU AI Act
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.