Concepts / Understanding Data and Tasks

Understanding Data and Tasks

Understanding your data and how it relates to your task is described in the source as quite possibly the most important part of the machine learning process.

  • Programming

A Tempting Shortcut With a Spreadsheet

Imagine you have a spreadsheet of records and a goal you want to reach with it. A common instinct is to pick a machine learning method that sounds impressive, load the records into it, and see what comes out. This instinct feels reasonable because algorithms are the visible and exciting part of machine learning, while the dataset looks like raw material that can be handled later. This article explains why that approach usually fails and what to do instead. The short version is that the data and the task deserve your attention before any algorithm does.

What do you think happens?

You have a spreadsheet of records, pick an algorithm at random, and feed the records into it. What do you expect to happen?

  • It reliably produces a useful result

  • It is ineffective, because algorithms work best for particular data and problem settings

  • It always fails with an error message

Reveal answer
Answer:

It is ineffective, because algorithms work best for particular data and problem settings.

The source states plainly that randomly choosing an algorithm and feeding it data is ineffective. Each algorithm works best for particular kinds of data and problem settings, so a random pairing is unlikely to produce something useful. Notice that the reveal does not say the program always crashes. The problem is that the output has no reliable connection to your goal.

Tracing the Random Choice Step by Step

Follow the shortcut one step at a time and watch what is known at each point. This trace is an illustration built from the situation the source describes, not a procedure the source lists.

  1. 1
    State after step 1: you have a spreadsheet of records and a goal, but you have not yet asked what the records contain or how they relate to the goal.
  2. 2
    State after step 2: you have picked a machine learning method because it sounds impressive. Nothing in the choice refers to your data or your task.
  3. 3
    State after step 3: the records are loaded into the method. The method is now working on data it was not selected for.
  4. 4
    State after step 4: something comes out. Whether it is useful is still unknown, because no one checked it against the problem you wanted to solve.
  5. 5
    Final state: the chain of decisions contains no point where the data or the task was examined, so the output is not anchored to the goal.

How the Data, the Task, and the Algorithm Connect

The source describes understanding your data, and how it relates to your task, as quite possibly the most important part of the machine learning process. Two ideas sit inside that statement. The first is that you need to know what is actually in your dataset. The second is that the dataset only matters in relation to a task, meaning the specific problem you are trying to solve. Data that is perfectly sensible for one task may be unhelpful for another, so you cannot judge the data in isolation.

Task goalDataset contentsAlgorithmSuitabilityProblem settinggives meaning tokind of dataproblem settingworks best when matched
How do the task's goal, the data collected, and the algorithm's inputs and outputs connect to one another? The task determines which part of the data matters, and the kind of data together with the problem setting determines which algorithm is suitable.

The concept map shows the central point of this section. The algorithm is not chosen in isolation. Its suitability depends on the kind of data you have and the problem setting you are working in. Each algorithm differs in the kind of data and problem setting it works best for, so the match among those three elements is what you are trying to get right.

Random Choice Versus Informed Choice

The two approaches below begin from the same spreadsheet but end in very different places. The first picks a method and then looks at the data. The second looks at the data and the task first and then selects a method that fits them.

Pick any algorithmFeed in the dataHope for a usefuloutputUnderstand the dataUnderstand the taskSelect a matchingalgorithmBuild the modelthenthenthenthenthen
What is the difference between feeding data into a randomly chosen algorithm and selecting an approach after understanding the data and task? The random path skips the examination steps, while the informed path places them before the choice of algorithm.
QuestionRandom choiceInformed choice
When is the algorithm picked?Before anyone examines the dataAfter the data and task are understood
Is the match between method and data checked?NoYes, as part of selection
Is the output tied to the real problem?Not by designKept in view throughout the work
What the source says about itIneffectiveKeeps the work anchored

Comparing the two approaches to a dataset and a goal

Machine Learning as One Stage in a Larger Process

Understanding the data and task keeps your work anchored, but the source adds a second layer. Machine learning is only one part of a greater process for solving a particular problem. Algorithms and methods are tools inside that process, and it helps to keep the whole process in view at all times. The source notes that many people spend a great deal of time building complex machine learning solutions, only to find that those solutions do not solve the right problem.

Define the problemUnderstand the dataBuild the modelCheck against thereal problemanchorsinformsis judged by
Where does model building sit relative to defining the problem, understanding the data, and checking whether the solution works? Model building is one stage among several, and it is surrounded by the work that determines whether it solves the right problem.

The source does not prescribe this exact list of stages. The diagram is a sketch of the idea it does state: model building is one stage inside a process aimed at a goal, and the stages before and after it are where the question of whether you are solving the right problem gets answered.

Planning Mistakes That Miss the Real Problem

The mistakes below share a pattern. Each one lets attention drift toward the algorithm and away from the task or the data, so the work continues but its connection to the real problem weakens.

  • Common mistake

    Choosing an algorithm at random and feeding it the data

    What it looks like

    Loading a spreadsheet of records into whichever method sounds most impressive and reviewing whatever it produces.

    Why it fails

    The source states that this is ineffective, because each algorithm works best for particular data and problem settings.

    Do this instead

    Examine the data and the task first, then select a method whose suitability matches them.

  • Common mistake

    Treating the dataset as something to handle later

    What it looks like

    Deferring any look at what the records contain until the model is already built.

    Why it fails

    The source says understanding the dataset is necessary before you begin building a model.

    Do this instead

    Find out what the data contains before building anything, and keep the task in mind while you do.

  • Common mistake

    Judging the data without reference to the task

    What it looks like

    Deciding a column is valuable because it looks rich, without asking whether it bears on the goal.

    Why it fails

    The source says the dataset only matters in relation to a task, so data can be sensible for one task and unhelpful for another.

    Do this instead

    Ask how each part of the data connects to the specific problem you are solving.

  • Common mistake

    Equating a strong model with a solved problem

    What it looks like

    Reporting that a complex model is well built without checking whether it addresses the original goal.

    Why it fails

    The source notes that many people build complex solutions that do not solve the right problem.

    Do this instead

    Check the solution against the real problem, not only against technical quality.

  • Common mistake

    Letting the questions about data and task drop out of view once the build begins

Checking Your Own Plan

EASY

Think of a dataset you have seen, or invent a simple one, such as a spreadsheet of customer records with a goal you want to reach. Before naming any algorithm, write down three things: what the records contain, what the goal is, and how each part of the records relates to that goal. Then write one sentence explaining why a method chosen at random would or would not be suitable.

Hints
  • Start with the goal, then ask which columns could bear on it.
  • The source says the data matters only in relation to the task, so a column is not valuable in isolation.
  • The source says algorithms each work best for particular data and problem settings. Ask what kind of data and what setting your goal implies.
MEDIUM

Look at your written plan and find the first point where you would be tempted to pick an algorithm. Move that choice to after you have written what the data contains and how it relates to the goal. Note what changed in the plan.

Hints
  • If the algorithm appears in your first line, the plan is following the shortcut from the start of this article.
  • The source advises pausing regularly to ask what your data contains, how it connects to the problem, and whether your method suits that combination.

Key Takeaways

  • Understanding your data and how it relates to your task is described in the source as quite possibly the most important part of the machine learning process.
  • Randomly choosing an algorithm and feeding it data is ineffective, because each algorithm works best for particular data and problem settings.
  • The dataset only matters in relation to a task, so data must be judged against the specific problem you are solving.
  • Machine learning is one stage inside a larger process for solving a problem, and a technically strong solution can still miss the right problem.
  • Keep questions about your data and task in mind throughout the work, and check the finished solution against the real problem.

Related concepts

More concepts starting with U