Model Validation in Python
Learn the basics of model validation, validation techniques, and begin creating validated and high performing models.
Kurs Kostenlos Starten4 Stunden15 Videos47 Übungen24.521 LernendeLeistungsnachweis
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.Trainierst du 2 oder mehr?
Versuchen DataCamp for BusinessBeliebt bei Lernenden in Tausenden Unternehmen
Kursbeschreibung
Machine learning models are easier to implement now more than ever before. Without proper validation, the results of running new data through a model might not be as accurate as expected. Model validation allows analysts to confidently answer the question, how good is your model? We will answer this question for classification models using the complete set of tic-tac-toe endgame scenarios, and for regression models using fivethirtyeight’s ultimate Halloween candy power ranking dataset. In this course, we will cover the basics of model validation, discuss various validation techniques, and begin to develop tools for creating validated and high performing models.
Trainierst du 2 oder mehr?
Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.In den folgenden Tracks
Machine Learning Scientist mit Python
Gehe zu Track- 1
Basic Modeling in scikit-learn
KostenlosBefore we can validate models, we need an understanding of how to create and work with them. This chapter provides an introduction to running regression and classification models in scikit-learn. We will use this model building foundation throughout the remaining chapters.
- 2
Validation Basics
This chapter focuses on the basics of model validation. From splitting data into training, validation, and testing datasets, to creating an understanding of the bias-variance tradeoff, we build the foundation for the techniques of K-Fold and Leave-One-Out validation practiced in chapter three.
Creating train, test, and validation datasets50 xpCreate one holdout set100 xpCreate two holdout sets100 xpWhy use holdout sets50 xpAccuracy metrics: regression models50 xpMean absolute error100 xpMean squared error100 xpPerformance on data subsets100 xpClassification metrics50 xpConfusion matrices100 xpConfusion matrices, again100 xpPrecision vs. recall100 xpThe bias-variance tradeoff50 xpError due to under/over-fitting100 xpAm I underfitting?100 xp - 3
Cross Validation
Holdout sets are a great start to model validation. However, using a single train and test set if often not enough. Cross-validation is considered the gold standard when it comes to validating model performance and is almost always used when tuning model hyper-parameters. This chapter focuses on performing cross-validation to validate model performance.
The problems with holdout sets50 xpTwo samples100 xpPotential problems50 xpCross-validation50 xpscikit-learn's KFold()100 xpUsing KFold indices100 xpsklearn's cross_val_score()50 xpscikit-learn's methods100 xpImplement cross_val_score()100 xpLeave-one-out-cross-validation (LOOCV)50 xpWhen to use LOOCV50 xpLeave-one-out-cross-validation100 xp - 4
Selecting the best model with Hyperparameter tuning.
The first three chapters focused on model validation techniques. In chapter 4 we apply these techniques, specifically cross-validation, while learning about hyperparameter tuning. After all, model validation makes tuning possible and helps us select the overall best model.
Introduction to hyperparameter tuning50 xpCreating Hyperparameters100 xpRunning a model using ranges100 xpRandomizedSearchCV50 xpPreparing for RandomizedSearch100 xpImplementing RandomizedSearchCV100 xpSelecting your final model50 xpBest classification accuracy50 xpSelecting the best precision model100 xpCourse completed!50 xp
Trainierst du 2 oder mehr?
Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.In den folgenden Tracks
Machine Learning Scientist mit Python
Gehe zu TrackMitwirkende
Voraussetzungen
Supervised Learning with scikit-learnKasey Jones
Mehr AnzeigenResearch Data Scientist
Was sagen andere Lernende?
Melden Sie sich an 15 Millionen Lernende und starten Sie Model Validation in Python Heute!
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.