Short answer
Training data is the data used to fit a model's learnable parameters before the model is asked to predict. A NIST glossary defines it as data used to train an AI system by fitting parameters, including neural network weights. Google's crash course says the training set is what the model trains on, and that a test set should be different examples.
Last verified against the sources listed below.
Key takeaways
- NIST defines training data as data used to fit learnable parameters, including neural network weights.
- Google's course says to train on one set and evaluate on different examples.
- The course prefers three subsets: training, validation, and test.
- Repeatedly tuning on the test set can make the model fit that set.
- A labeled table in this article is an illustration, not a study and not a measured accuracy.
What is training data? It is the set of examples a model fits, so its parameters reflect those examples before it is asked to predict on something new.
A NIST terminology report defines it in one sentence: data used for training an AI system through fitting its learnable parameters, including the weights of a neural network. That is the job of the data. It is not a promise about how accurate the model will be.
Machine learning is the field this definition sits in. What machine learning is is the cluster guide.
What is training data in machine learning?
Training data in machine learning is the data used to fit parameters, not the data you hold back to judge the fit.
The EU-U.S. terminology report published through NIST, in the file dated 24 January 2025, puts training data in its AI lifecycle cluster and derives the definition from the AI Act wording it cites. The same table describes machine learning as systems that learn from data to perform a task without being explicitly programmed for that task, and it describes learning as optimizing model parameters for the training task.
A later NIST contractor report, NIST GCR 26-069, uses a shorter gloss: training data refers to the dataset used to train an AI model. It lists practices around that dataset, including preprocessing choices, change management, scarce data, mixed formats, and marking what is allowed or excluded from training. It does not give a row count or an accuracy target.
Google’s crash course page on dividing datasets, updated 3 December 2025, starts from the same idea and then splits the file. You train on a training set. You evaluate on other examples.
How do training and testing data differ?
Training data fits the model. Testing data is a different set of examples used to evaluate that fit.
The course says testing on the same examples you trained on is weaker evidence than testing on examples the model has not fitted. The traditional step is to split the original dataset. A two-way split is a training set and a test set. The page calls that decent, and it prefers three subsets:
- A training set that the model trains on.
- A validation set that does the initial testing while you still change the model.
- A test set that double-checks the model after validation looks sound.
“Tweak model,” in the course’s figure, means any change: learning rate, features added or removed, or a new model. The validation set guides those tweaks.
The test set is not the steering wheel. If you use test results to update hyperparameters and features over many rounds, the page says the model can implicitly fit the peculiarities of that test set.
The course also says a feature transform applied to the training set must be applied to the validation set, the test set, and the real-world data. Otherwise the evaluation is not looking at the same kind of input the model will see later.
| Role | What Google’s course says it is for |
|---|---|
| Training set | The examples the model trains on |
| Validation set | Initial testing while you still tweak the model |
| Test set | A double-check on examples you did not use to steer those tweaks |
| Real-world data | The data the model meets in its actual use, which a test set only approximates |
The course says even a careful split wears out. The more you use the same validation or test rows to make decisions, the less those rows tell you about new data.
Its advice is to collect more data and refresh those sets. It does not name a percentage that every project must use.
What is a training data set?
A training data set is the collection you actually fit, often the training split of a larger original dataset.
People use “training data,” “training set,” and “training data set” for that fitting collection. Google’s page keeps “original dataset” for the file before the split, and “training set” for the part the model trains on. Mixing the two makes a test result look stronger than it is, because the test rows were never held out.
NIST’s July 2026 draft on public AI documentation, NIST AI 300-1 ipd, defines an AI dataset as a dataset intended for use in training or evaluating an AI model or system. One example in that draft is macro photographs of flowers in 256 by 256 pixels.
Another is micro-blogging posts from June 2020 tied to two hashtags. Those are illustrations of what a dataset description can contain.
They are not recommended sizes for every model.
The draft also says a dataset can be used for validating or testing, and, in a machine learning context, for training. That matches the crash course split: one collection can be divided, and the parts do different jobs.
This table is an illustration of labeled rows, not a study. The labels were written to show the shape of a training row. They are not measured spam, and they have no accuracy attached.
| Text of the example | Label on the row |
|---|---|
| Reset your password using this new link | spam |
| Lunch at noon in the lobby | not spam |
| Your package is waiting at the side door | not spam |
A model that fits these three rows has only seen these three rows. Google’s page would still ask for a validation set and a test set made of different examples, with duplicates removed. Three rows are not that test.
What does a bad split look like?
A bad split tests the model on copies of rows it already trained on, so the score flatters the fit.
The course’s own illustration is a spam model whose features are the subject line, the body, and the sender’s address. Suppose the data is divided with an 80-20 split.
After training, the story’s model reaches 99% precision on the training set and on the test set. The page says you would expect the test figure to be lower, and the cause in the story is duplicate spam mail left in both sets.
You trained on some of the test data. The page’s remedy is to delete validation and test examples that duplicate the training set.
That 80-20 split and that 99% precision are the course’s hypothetical, not a result to aim at. The same page says there is no percentage requirement for how large each set must be, though the training set is usually larger.
It also says a good test or validation set is large enough for a statistically significant result, representative of the dataset, representative of real-world data, and free of training duplicates. It does not define “large enough” as a number.
If the test loss looks fine and the model still fails in the world, the course says the dataset was only a snapshot. Ground truth changes. The fix it names is to retrain and retest on a new dataset, not to rerun the same test and hope.
Where does generative work use the same idea?
Generative models still fit parameters on data. The training data is that fitting set, even when the output is new text or a new image.
What generative AI is covers systems that produce new content. The NIST definition used here does not limit training data to classifiers.
It includes fitting learnable parameters, and it names neural network weights as one case. The crash course’s split still applies: do not grade the model only on the rows it fitted, and do not keep tuning on the test rows.
Google’s dividing-datasets page compares that check with ordinary software testing: projects test their apps, and the course says to test the model too. Python’s pdb documentation is one description of inspecting a program when a result looks wrong. It does not label rows or fit weights.
Nothing on these pages says a compressed image is training data. An image compressor shrinks a file in the browser.
It does not label rows or fit weights. If a training set is made of images, the dataset description, such as NIST’s 256 by 256 flower example, is where size belongs.
Compression for a web page is a different task.
Frequently asked questions
What is training data in machine learning?
In the NIST terminology report, training data is data used to train an AI system by fitting its learnable parameters, including the weights of a neural network. The same report describes learning as optimizing those parameters for the training task. Google's crash course uses a plainer split: a training set is what the model trains on, and a test set is for evaluation on different examples. Fitting and predicting are not the same step.
How do training and testing data differ?
Google's dividing-datasets page says you should test a model on different examples from the ones used to train it. The training set is what the model trains on. The test set evaluates the trained model. A validation set does the initial testing while you still tweak the model, and the test set is the later double-check. Using the test set to steer each tweak can make the model fit that set.
What is a training data set?
A training data set is the collection of examples used to fit the model, as opposed to the original file before you split it. Google's course starts with an original dataset and says to split it. The training set is the part the model trains on. NIST's documentation draft uses AI dataset for data intended for training or evaluation. One example is macro photographs of flowers in 256 by 256 pixels, which is a description, not a required size.
Why does the course warn about duplicate rows?
The dividing-datasets page says a test set that copies training rows is not a fair test, because the model has already seen those examples. Its illustration is a spam classifier using subject, body, and sender. In that story the data is split 80-20, and the model shows 99 percent precision on both sets because duplicate spam rows were left in. The page presents that as a mistake in the split, not as a benchmark to copy. Delete validation and test rows that duplicate the training set.
Does a small labeled table count as a study?
No. A few hand-written rows can show what a label looks like. They do not estimate accuracy, and they are not a sample size from NIST or from the crash course. Those sources do not set a minimum number of rows on the pages used here. Google says a good test set should be large enough for a statistically significant result, representative of the dataset and of real-world data, and free of training duplicates. It does not print a universal row count.
Sources
- EU-U.S. AI terminology, second edition · NIST, 2025
- Evaluating AI standards development · NIST, 2026
- AI documentation zero draft · NIST, 2026
- Dividing the original dataset · Google for Developers, 2026
- Datasets, generalization, and overfitting · Google for Developers, 2026
- pdb, the Python debugger · Python, 2026