Title: Training and Test Data in Machine Learning
Open Graph Title: Training and Test Data in Machine Learning
X Title: Training and Test Data in Machine Learning
Description: Why you split your data into a training set and a test set. See how sklearn does the split, what overfitting looks like and the usual split ratio.
Open Graph Description: Why you split your data into a training set and a test set. See how sklearn does the split, what overfitting looks like and the usual split ratio.
X Description: Why you split your data into a training set and a test set. See how sklearn does the split, what overfitting looks like and the usual split ratio.
Opengraph URL: https://pythonprogramminglanguage.com/training-and-test-data/
Domain: pythonprogramminglanguage.com
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://pythonprogramminglanguage.com/#website",
"url": "https://pythonprogramminglanguage.com/",
"name": "Python Programming Language",
"description": "Free Python tutorials with clear explanations and code you can run.",
"inLanguage": "en",
"publisher": {
"@id": "https://pythonprogramminglanguage.com/#org"
}
},
{
"@type": "Organization",
"@id": "https://pythonprogramminglanguage.com/#org",
"name": "pythonprogramminglanguage.com",
"url": "https://pythonprogramminglanguage.com/",
"logo": {
"@type": "ImageObject",
"url": "https://pythonprogramminglanguage.com/images/og-default.png",
"width": 1200,
"height": 630
}
},
{
"@type": "BreadcrumbList",
"@id": "https://pythonprogramminglanguage.com/training-and-test-data/#breadcrumb",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://pythonprogramminglanguage.com/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Machine Learning Tutorials for Python",
"item": "https://pythonprogramminglanguage.com/python-machine-learning/"
},
{
"@type": "ListItem",
"position": 3,
"name": "Training and test data",
"item": "https://pythonprogramminglanguage.com/training-and-test-data/"
}
]
},
{
"@type": "TechArticle",
"@id": "https://pythonprogramminglanguage.com/training-and-test-data/#article",
"isPartOf": {
"@id": "https://pythonprogramminglanguage.com/#website"
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://pythonprogramminglanguage.com/training-and-test-data/"
},
"headline": "Training and Test Data in Machine Learning",
"name": "Training and test data",
"description": "Why you split your data into a training set and a test set. See how sklearn does the split, what overfitting looks like and the usual split ratio.",
"inLanguage": "en",
"image": [
"https://pythonprogramminglanguage.com/images/og-default.png"
],
"datePublished": "2017-05-01",
"dateModified": "2026-10-01",
"wordCount": 250,
"proficiencyLevel": "Beginner",
"articleSection": "Machine learning",
"author": {
"@id": "https://pythonprogramminglanguage.com/#org"
},
"publisher": {
"@id": "https://pythonprogramminglanguage.com/#org"
}
},
{
"@type": "WebPage",
"@id": "https://pythonprogramminglanguage.com/training-and-test-data/#webpage",
"url": "https://pythonprogramminglanguage.com/training-and-test-data/",
"name": "Training and Test Data in Machine Learning",
"description": "Why you split your data into a training set and a test set. See how sklearn does the split, what overfitting looks like and the usual split ratio.",
"isPartOf": {
"@id": "https://pythonprogramminglanguage.com/#website"
},
"inLanguage": "en",
"breadcrumb": {
"@id": "https://pythonprogramminglanguage.com/training-and-test-data/#breadcrumb"
}
}
]
}
| theme-color | #4184f3 |
| og:type | article |
| og:site_name | Python Programming Language |
| og:locale | en_US |
| og:image | https://pythonprogramminglanguage.com/images/og-default.png |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:image:alt | pythonprogramminglanguage.com, free Python tutorials with runnable code examples |
| article:published_time | 2017-05-01T00:00:00+00:00 |
| article:modified_time | 2026-10-01T00:00:00+00:00 |
| article:section | Machine learning |
| twitter:card | summary_large_image |
| twitter:image | https://pythonprogramminglanguage.com/images/og-default.png |
Links:
Viewport: width=device-width, initial-scale=1
Robots: index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1