Types of Machine Learning
10 Pages
English
High School
Edit
Machine Learning Foundations
1. What Machine Learning Is
2. Data, Patterns, and Predictions
3. Training and Testing Data
4. Inputs, Outputs, and Features
5. Machine Learning in Everyday Life
Main Types of Machine Learning
6. Learning from Labeled Examples
7. How a Spam Filter Learns
8. Discovering Patterns Without Labels
9. Grouping Customers by Similarity
10. Learning Through Actions and Rewards
1. What Machine Learning Is
Machine learning is a way of building computer systems that improve at a task by finding patterns in examples, rather than following a separate hand-written rule for every possible situation. A programmer still chooses the goal, provides data, and checks the results, but the system uses an algorithm to adjust itself during learning. In supervised learning, examples include correct answers, such as photos labeled “cat” or “not cat,” so the model learns to connect inputs with labels. In unsupervised learning, the data has no given answers, and the model may group similar customers, songs, or news stories. In reinforcement learning, an agent chooses actions and receives rewards or penalties, gradually learning useful strategies. Machine learning is powerful when rules would be too numerous or change too often, but it is not magic: its results depend strongly on the data, the goal, and careful human evaluation.
Is machine learning the same as ordinary computer programming?
Can a machine-learning system learn without humans?
Landscape
Fullscreen
2. Data, Patterns, and Predictions
Data is the collection of information a machine-learning system studies. It can include numbers, words, images, sounds, locations, clicks, or measurements from sensors. A pattern is a relationship that appears repeatedly in that information. For example, a system predicting whether students may need extra practice could notice that low quiz scores and missed assignments often occur together. After finding patterns, a model can make a prediction for a new case it has not seen before. A prediction might be a category, such as whether an email is spam, or a number, such as tomorrow’s expected temperature. Predictions are estimates, not guaranteed facts. A strong model should be tested on new data and judged by appropriate measures, such as accuracy for categories or average error for numerical estimates. Patterns can be misleading when the data is too small, outdated, biased, or missing important information, so people must interpret predictions thoughtfully.
Does finding a pattern prove that one thing causes another?
Why can a prediction be wrong even if the model found real patterns?
Landscape
Fullscreen
3. Training and Testing Data
To learn responsibly, a machine-learning model should be evaluated on information it did not use for learning. The examples used to build the model are called training data. During training, the algorithm adjusts the model so its outputs better match known answers or useful goals. Testing data is held back until the model is finished, then used to see how well it works on unfamiliar examples. This separation matters because a model can memorize training examples instead of learning a general pattern. Memorizing may produce impressive training results but poor performance in real life; this problem is called overfitting. A team may also use validation data while making choices about the model, leaving test data untouched for a final check. Training and testing sets should represent the people and situations where the system will be used. If a face-recognition system is trained mostly on one group, for example, its test results may hide weaknesses for underrepresented groups.
Why not test a model using the same examples used for training?
Can more training data always fix a weak model?
Landscape
Fullscreen
4. Inputs, Outputs, and Features
A machine-learning task begins by deciding what information goes into a model and what result should come out. Inputs are the details supplied to the model. Features are individual input variables chosen because they may help answer the question. For a model that estimates a home’s price, features could include neighborhood, number of bedrooms, size, and age. The output is the model’s result, such as a predicted price or a category like “likely to sell quickly.” In supervised learning, the desired output in the training examples is often called the target or label. Choosing features requires thought: a feature should be relevant, available when a prediction is needed, and collected in a fair, lawful way. Including a person’s ZIP code, for instance, may accidentally reflect historical inequalities and create unfair results. Features also need consistent formats, because a missing value, typo, or mismatched unit can confuse a model. Good feature choices connect the model’s inputs to the real question without invading privacy or introducing hidden bias.
Are more features always better?
Can a model use information that will only be known later?
Landscape
Fullscreen
5. Machine Learning in Everyday Life
Machine learning appears in many familiar tools, often working quietly in the background. A music app may recommend songs by comparing listening patterns among users with similar tastes. An email service can classify messages as spam by learning from examples of unwanted and wanted messages. Navigation apps estimate travel times from traffic patterns, road conditions, and past trips. Streaming services suggest shows, stores forecast which products to stock, and phone keyboards predict the next word. These systems can save time and offer useful personalization, but their recommendations influence what people see and choose. A recommendation is not necessarily the best, safest, or most truthful option; it is an estimate based on a specific goal and available data. Users should remain skeptical, especially when a system affects school, employment, health, credit, or policing. Designers should explain limits, protect personal information, check for unequal errors, and provide ways for people to question or appeal important automated decisions.
Why do two people get different recommendations from the same app?
Should people always follow an automated recommendation?
Landscape
Fullscreen
6. Learning from Labeled Examples
Supervised learning is a type of machine learning in which a computer learns from labeled data. A label is the correct answer already attached to an example, much like an answer key helps a student check work. For instance, a collection of house listings might include features such as size, number of bedrooms, neighborhood, and selling price. The selling price is the label the system is meant to predict. During training, the model compares its predictions with the known labels and adjusts its internal rules to make fewer mistakes. After seeing many examples, it can estimate an answer for new data that has no label yet. Supervised learning can make categories, such as “safe” or “unsafe,” or predict numbers, such as tomorrow’s temperature. Its success depends heavily on having many accurate, relevant examples, because unclear or incorrect labels can teach the model the wrong pattern.
Why are labels important in supervised learning?
Can supervised learning predict more than categories?
Landscape
Fullscreen
7. How a Spam Filter Learns
Email spam filtering is a familiar example of supervised learning. To train a filter, people or email providers collect messages that have been labeled “spam” or “not spam.” The model examines features in those messages, including repeated phrases, suspicious links, unusual sender addresses, many capital letters, or words that often appear in scams. It does not simply memorize every old message. Instead, it looks for combinations of clues that are common in the labeled examples. When a new email arrives, the model predicts whether it belongs in the inbox or spam folder. A strong filter must balance two kinds of errors: letting a harmful spam message reach the inbox and mistakenly hiding a real message. Feedback improves the system over time. When a user marks an unwanted email as spam, or rescues a wanted email from the spam folder, that correction can become useful labeled data for future training and testing.
Why might a spam filter make a mistake?
Why is user feedback valuable to a spam filter?
Landscape
Fullscreen
8. Discovering Patterns Without Labels
Unsupervised learning works with unlabeled data, meaning the examples do not come with correct answers attached. Rather than being told what to predict, the computer searches for structure, similarities, or unusual cases hidden in the data. Imagine receiving thousands of songs described by tempo, length, instruments, and loudness, but with no genre names. An unsupervised system might find groups of songs with similar features. People can then inspect those groups and decide whether they resemble genres, workout playlists, or another useful category. One common task is clustering, which places similar examples into groups. Another is finding anomalies: examples that are very different from most others, such as an unusual bank transaction. The patterns found are not automatically meaningful or fair; people must interpret them carefully. Good data choices and human judgment matter because a model can group items by details that are accidental, unhelpful, or connected to unfair assumptions.
How is unsupervised learning different from supervised learning?
Does a cluster automatically have a correct name?
Landscape
Fullscreen
9. Grouping Customers by Similarity
A store can use unsupervised learning to explore customer patterns without first deciding what each customer should be called. It may collect data such as how often people shop, which product types they buy, average spending, whether they use an app, and the time of year they purchase items. A clustering model compares these features and forms groups whose members are relatively similar. One group might contain frequent shoppers who mainly buy sports equipment, while another may include occasional customers who purchase gifts during holidays. These groups can help the store plan inventory, design relevant coupons, or improve its website. However, the groups are not permanent facts about people. They are summaries based on selected data, and one person may not fit neatly into any group. Businesses should also protect privacy, avoid using sensitive information carelessly, and check that offers do not unfairly exclude or disadvantage customers. Human review turns a mathematical pattern into a responsible decision.
Why might a store group customers?
Why should people be cautious about customer groups?
Landscape
Fullscreen
10. Learning Through Actions and Rewards
Reinforcement learning teaches a system by allowing it to make choices, observe results, and receive rewards or penalties. Instead of studying a fixed answer key, an agent interacts with an environment over many attempts. For example, a game-playing program can choose a move, see how the game changes, and earn a positive reward for winning or a negative reward for losing. Its goal is to learn a strategy that earns the greatest total reward over time. This may require patience: a move that seems unhelpful now might set up a better result later. Reinforcement learning is also used in areas such as robot movement, traffic signal timing, and recommendation systems, but it needs careful testing. If the reward is poorly designed, the agent may find an unintended shortcut that raises its score without achieving the real goal. Designers therefore define rewards thoughtfully, set safety limits, and test behavior in simulations before allowing a system to affect people or the physical world.
How is reinforcement learning different from learning from labeled examples?
Why is reward design so important?
Landscape
Fullscreen

Knowledge.
Made Visual.
Create your first visual book and get started