Machine learning
What is the different between traing set and test set ? can give a real time example?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mehreen TahirRank #469 · 5.3K reputationPosted Jan 14, 2019, 4:51 PM EST
Usually you need two types of datasets when performing supervised learning:
- The dataset that has the input data with correct/expeced output which would be used to train your model. This dataset is known as training set.
- The data you are going to apply your model to. This is the data in which you are interested for the output of your model and want the "expected" output.
So there're going to be two phases while performing machine learning. Training Phase, in which you will present your data from training set and train your model, by pairing the input with expected output. For example we are interested in predicting the type of diabetes a patient has. Our training data will contain all the information related to patient i.e. height, weight, BMI, age, blood sugar level etc. along with the expected out either type A or B. Now comes the Test Phase, in which you'll apply your freshly-developed model to the real-world data and get the results. In this phase, we will feed our model with the test set that will contain the similar patiet information and our model will predict either patient is suffering from type A diabetes or type B. This phase will help you estimate how well your model has been trained. Most commonly the partition ratio of training and test set is 70/30.Md SarfarajRank #194 · 12.4K reputationPosted Jan 16, 2019, 9:41 PM EST
Rohit GuptaRank #11 · 59.9K reputationPosted Jul 16, 2019, 1:16 AM EDT