concept test datum in category data

appears as: test data, test data
Build a Career in Data Science

This is an excerpt from Manning's book Build a Career in Data Science.

Training data is data that is used to train a machine learning model. Test data is data that is not used in training a machine learning model; instead, it is used to validate how well the model works. These datasets need to be separate because if data is used to train a model, the model can learn the correct result for the data and will be artificially good at fitting to it.

There are many ways to split training data and test data. My general approach is to take a small random sample, such as 10%, at the beginning of an analysis and use that as my test data for all my models while the other 90% is training data. When I’ve found a model I like that performs well enough, I retrain the model on all the data (both training and test) to get the most accurate model to deploy to production.