Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=r4mwkS2T9aI



Category:
Tutorial
Duration: 16:26
460,817 views
3,610


Welcome to part four of the Machine Learning with Python tutorial series. In the previous tutorials, we got our initial data, we transformed and manipulated it a bit to our liking, and then we began to define our features. Scikit-Learn does not fundamentally need to work with Pandas and dataframes, I just prefer to do my data-handling with it, as it is fast and efficient. Instead, Scikit-learn actually fundamentally requires numpy arrays. Pandas dataframes can be easily converted to NumPy arrays, so it just so happens to work out for us!

It is a typical standard with machine learning in code to define X (capital x), as the features, and y (lowercase y) as the label that corresponds to the features. As such, we can define our features and labels like so.

https://pythonprogramming.net
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex




Other Videos By sentdex


2016-05-01K Nearest Neighbors Application - Practical Machine Learning Tutorial with Python p.14
2016-04-29Classification w/ K Nearest Neighbors Intro - Practical Machine Learning Tutorial with Python p.13
2016-04-26Testing Assumptions - Practical Machine Learning Tutorial with Python p.12
2016-04-23Programming R Squared - Practical Machine Learning Tutorial with Python p.11
2016-04-21R Squared Theory - Practical Machine Learning Tutorial with Python p.10
2016-04-18How to program the Best Fit Line - Practical Machine Learning Tutorial with Python p.9
2016-04-17How to program the Best Fit Slope - Practical Machine Learning Tutorial with Python p.8
2016-04-16Regression How it Works - Practical Machine Learning Tutorial with Python p.7
2016-04-14Pickling and Scaling - Practical Machine Learning Tutorial with Python p.6
2016-04-13Regression forecasting and predicting - Practical Machine Learning Tutorial with Python p.5
2016-04-12Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016-04-11Regression Features and Labels - Practical Machine Learning Tutorial with Python p.3
2016-04-10Regression Intro - Practical Machine Learning Tutorial with Python p.2
2016-04-10Practical Machine Learning Tutorial with Python Intro p.1
2016-03-16Building a Quadcopter p.5 - First flight and other Info
2016-03-14Building a Quadcopter p.4 - ESC Calibration with Hobbypower KK2.15
2016-03-11Building a Quadcopter p.3 - Assembly
2016-03-08Building a Quadcopter p.2 - Parts
2016-03-07Building a Quadcopter p.1 - Introduction
2016-03-04[See Description] Pipeline Tutorial - Python for Finance with Quantopian and Zipline 20
2016-03-02[See Description] Pipeline API Intro - Python for Finance with Quantopian and Zipline 19



Tags:
machine learning
python
tutorial
artificial intelligence
scikit-learn
theano
tensorflow
regression
linear regression
linear regression code
train
test
preprocessing