Train / Test Split for Linear Regression - Pandas For Machine Learning 27

Pubblicato il: 27 marzo 2023
sul canale di: John Elder
17,242
428

In this video we'll start to dive into Linear Regression by setting up are Train / Test split.

We'll use Scikit-Learn to do the heavy lifting here.

First we'll place our data into X and y variables, then we'll create X_train, and X_test sets, as well as y_train and y_test sets.

We'll also look at the shapes of each of those things.

#pandas #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:33 - Create X and y Variables
2:51 - Check X, y shape
3:37 - Explain Train Test Splits
4:16 - Import sklearn.model_selection
4:46 - Create Train Test Splits
7:22 - Check the Train Test Shapes
9:32 - Conclusion


In questa pagina del sito puoi guardare il video online Train / Test Split for Linear Regression - Pandas For Machine Learning 27 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato John Elder 27 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 17,242 volte e gli è piaciuto 428 spettatori. Buona visione!