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

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

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 dataframe...
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

#machine learning #python #tutorial #artificial intelligence #scikit-learn #theano #tensorflow #regression #linear regression #linear regression code #train #test #preprocessing
you mention we want our features to be between -1 and +1, what does that mean? Is it literally just scaling the data values down? Any shifting or removing of bias? - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

you mention we want our features to be between -1 and +1, what does that mean? Is it literally just scaling the data values down? Any shifting or removing of bias?

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:00:49 - 00:16:26
.def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32Windows 7Pip List includescryptographyidnainflectionmore-itertoolsndg-httpsclientnumpypandaspippyasn1pycparserpyOpenSSLpython-dateutilpytzQuandlrequestsscikit-learnsetuptoolssixsklearn - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

.def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32Windows 7Pip List includescryptographyidnainflectionmore-itertoolsndg-httpsclientnumpypandaspippyasn1pycparserpyOpenSSLpython-dateutilpytzQuandlrequestsscikit-learnsetuptoolssixsklearn

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:02:04 - 00:16:26
= voice crack - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

= voice crack

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:02:06 - 00:16:26
X[] (element at the third index to the 5th index, 5th not included)X[3:-5] (negative 5 used, so element at the third index to the 5th item from the end, 5th not included, so effectively till 6th item  item from the end) - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

X[] (element at the third index to the 5th index, 5th not included)X[3:-5] (negative 5 used, so element at the third index to the 5th item from the end, 5th not included, so effectively till 6th item item from the end)

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:03:05 - 00:16:26
after 'label' at  as X = np.array(df.drop(['label'], 1)) ? - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

after 'label' at as X = np.array(df.drop(['label'], 1)) ?

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:03:05 - 00:16:26
I made a virtual environment, when I try to run the new code from this video (around ) I getImportError: No module named 'scipy'I tried installing and searched on StackOverflow, updated pip, and tried other things. Nothing works.Plus, I don't really get what's the purpose of this project. It's probably just me.Also, do you have any practical books to recommend, or anything that would lead me to become better at programming, I'm somewhere in the middle between beginner and intermediate and I'm some-what lost. What should I do? - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

I made a virtual environment, when I try to run the new code from this video (around ) I getImportError: No module named 'scipy'I tried installing and searched on StackOverflow, updated pip, and tried other things. Nothing works.Plus, I don't really get what's the purpose of this project. It's probably just me.Also, do you have any practical books to recommend, or anything that would lead me to become better at programming, I'm somewhere in the middle between beginner and intermediate and I'm some-what lost. What should I do?

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:05:00 - 00:16:26
in , i was curious to know as to why were you reassigning the 'y' value. What difference would that actually make? any input would be gladly appreciated. - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

in , i was curious to know as to why were you reassigning the 'y' value. What difference would that actually make? any input would be gladly appreciated.

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:05:16 - 00:16:26
at  why did you again write y=np.array(df.['label']) - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

at why did you again write y=np.array(df.['label'])

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:05:32 - 00:16:26
Also, at around  the `dropna` function won't do anything to the dataset with default parameters if it has no NaN elements. The forecast shift is something else entirely. - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

Also, at around the `dropna` function won't do anything to the dataset with default parameters if it has no NaN elements. The forecast shift is something else entirely.

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:06:15 - 00:16:26
]" at - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

]" at

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:09:32 - 00:16:26
"one more thing to talk about before I let u guys go..."that sound like a university tutor. So triggered - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

"one more thing to talk about before I let u guys go..."that sound like a university tutor. So triggered

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:12:44 - 00:16:26
is "n_jobs" is same as number of epochs? - Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4

is "n_jobs" is same as number of epochs?

Regression Training and Testing - Practical Machine Learning Tutorial with Python p.4
2016年04月13日
00:14:44 - 00:16:26
sentdex

sentdex

🎉 1,100,000 人達成! 🎉

【予測】200万人まであと2520日(2029年8月31日)

チャンネル登録 RSS
Python Programming tutorials, going further than just the basics. Learn about machine learning, finance, data analysis, robotics, web development, game development and more.

I have ~1000 videos, all of which do not fit on the front page. Try searching on the channel page, or via https://pythonpr...
Python Programming tutorials, going further than just the basics. Learn about machine learning, finance, data analysis, robotics, web development, game development and more.

I have ~1000 videos, all of which do not fit on the front page. Try searching on the channel page, or via https://pythonprogramming.net. If you cannot find something, just ask!

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Paypal donations: [email protected]

Timetable

動画タイムテーブル

動画数:54件

at  what's the difference between "prev_obs.reshape(-1,4,1)[0]" and "prev_obs.reshape(-1,4)" ?if there is none, why do the first one? is that a habit from something else? - Testing Network - Training a neural network to play a game with TensorFlow and Open AI p.4

at what's the difference between "prev_obs.reshape(-1,4,1)[0]" and "prev_obs.reshape(-1,4)" ?if there is none, why do the first one? is that a habit from something else?

Testing Network - Training a neural network to play a game with TensorFlow and Open AI p.4
2017年03月13日
00:03:40 - 00:16:16
at  Lord Sentdex said that we take the 0th element of the list because we are only predicting on one frame.Anyone knows how to make predictions based on multiple frames ? - Testing Network - Training a neural network to play a game with TensorFlow and Open AI p.4

at Lord Sentdex said that we take the 0th element of the list because we are only predicting on one frame.Anyone knows how to make predictions based on multiple frames ?

Testing Network - Training a neural network to play a game with TensorFlow and Open AI p.4
2017年03月13日
00:04:00 - 00:16:16
Hey Sentdex, what do you mean by 'headless' at ? What type of example is headless and what type isn't? - Testing Network - Training a neural network to play a game with TensorFlow and Open AI p.4

Hey Sentdex, what do you mean by 'headless' at ? What type of example is headless and what type isn't?

Testing Network - Training a neural network to play a game with TensorFlow and Open AI p.4
2017年03月13日
00:04:50 - 00:16:16
lol, @ "Harrison, always messing with future Harrison". - Training Model - Training a neural network to play a game with TensorFlow and Open AI p.3

lol, @ "Harrison, always messing with future Harrison".

Training Model - Training a neural network to play a game with TensorFlow and Open AI p.3
2017年03月13日
00:13:30 - 00:14:38
someone gets a score of over 9000! - Intro - Training a neural network to play a game with TensorFlow and Open AI

someone gets a score of over 9000!

Intro - Training a neural network to play a game with TensorFlow and Open AI
2017年03月13日
00:02:20 - 00:12:32
The links you mentioned at  are missing - Intro - Training a neural network to play a game with TensorFlow and Open AI

The links you mentioned at are missing

Intro - Training a neural network to play a game with TensorFlow and Open AI
2017年03月13日
00:05:00 - 00:12:32
/x pass dtype wherever u r making np.array()2. if u r getting like target_1/y use tf.compat.v1.reset_default_graph() just after the wherever u have imported tensorflow.Some points which I faced and their solution:1. if u r working on newer numpy, always pass dtype = object in the parameter of np.array()2. I am using tensorflow 2.xx    tflearn 0.05(something like this).3. If u have version compatibility issues with tf2.0.0   I made a virtual env using conda then used pip to install latest of everything. - Training - Using Convolutional Neural Network to Identify Dogs vs Cats p. 3

/x pass dtype wherever u r making np.array()2. if u r getting like target_1/y use tf.compat.v1.reset_default_graph() just after the wherever u have imported tensorflow.Some points which I faced and their solution:1. if u r working on newer numpy, always pass dtype = object in the parameter of np.array()2. I am using tensorflow 2.xx tflearn 0.05(something like this).3. If u have version compatibility issues with tf2.0.0 I made a virtual env using conda then used pip to install latest of everything.

Training - Using Convolutional Neural Network to Identify Dogs vs Cats p. 3
2017年02月23日
00:00:00 - 00:19:02
[<?, ?it/s] ".I don't know how to fix it can you please help me to solve this error and thank you in advance - Building the Network - Using Convolutional Neural Network to Identify Dogs vs Cats p. 2

[<?, ?it/s] ".I don't know how to fix it can you please help me to solve this error and thank you in advance

Building the Network - Using Convolutional Neural Network to Identify Dogs vs Cats p. 2
2017年02月23日
00:00:00 - 00:09:05
[<?, ?it/s] and there seems to be nothing happening. Could you please help me on this. - Building the Network - Using Convolutional Neural Network to Identify Dogs vs Cats p. 2

[<?, ?it/s] and there seems to be nothing happening. Could you please help me on this.

Building the Network - Using Convolutional Neural Network to Identify Dogs vs Cats p. 2
2017年02月23日
00:00:00 - 00:09:05
[<00:00, 804.72it/s] - Building the Network - Using Convolutional Neural Network to Identify Dogs vs Cats p. 2

[<00:00, 804.72it/s]

Building the Network - Using Convolutional Neural Network to Identify Dogs vs Cats p. 2
2017年02月23日
00:00:31 - 00:09:05
tqdm is available on kaggle kernel. ( in video) - Intro and preprocessing - Using Convolutional Neural Network to Identify Dogs vs Cats p. 1

tqdm is available on kaggle kernel. ( in video)

Intro and preprocessing - Using Convolutional Neural Network to Identify Dogs vs Cats p. 1
2017年02月23日
00:08:28 - 00:12:51
pciBusID: .0totalMemory: 4.00GiB freeMemory: 3.29GiB - Installing CPU and GPU TensorFlow on Windows

pciBusID: .0totalMemory: 4.00GiB freeMemory: 3.29GiB

Installing CPU and GPU TensorFlow on Windows
2016年12月12日
00:01:00 - 00:18:16
gpuz says you were using about 11GB of memory. What's up with that? Do you have like 2 6GB cards in SLI?edit: Oh shit. Nevermind. Just watched your gear video. Titan X 12GB - Installing CPU and GPU TensorFlow on Windows

gpuz says you were using about 11GB of memory. What's up with that? Do you have like 2 6GB cards in SLI?edit: Oh shit. Nevermind. Just watched your gear video. Titan X 12GB

Installing CPU and GPU TensorFlow on Windows
2016年12月12日
00:17:06 - 00:18:16
Why is the data being reshaped at ? - TFLearn - Deep Learning with Neural Networks and TensorFlow p. 14

Why is the data being reshaped at ?

TFLearn - Deep Learning with Neural Networks and TensorFlow p. 14
2016年10月05日
00:11:00 - 00:27:42
Aren't you supposed to shift down by 2 then? - Convolutional Neural Networks Basics - Deep Learning withTensorFlow 12

Aren't you supposed to shift down by 2 then?

Convolutional Neural Networks Basics - Deep Learning withTensorFlow 12
2016年09月19日
00:04:27 - 00:09:11
That's how Microsoft logo was designed - Convolutional Neural Networks Basics - Deep Learning withTensorFlow 12

That's how Microsoft logo was designed

Convolutional Neural Networks Basics - Deep Learning withTensorFlow 12
2016年09月19日
00:04:38 - 00:09:11
ValueError: Input graph and Layer graph are not the same: Tensor("split_", shape=(?, 28), dtype=float32) is not from the passed-in graph. - RNN Example in Tensorflow - Deep Learning with Neural Networks 11

ValueError: Input graph and Layer graph are not the same: Tensor("split_", shape=(?, 28), dtype=float32) is not from the passed-in graph.

RNN Example in Tensorflow - Deep Learning with Neural Networks 11
2016年09月14日
00:02:00 - 00:14:20
] at ? - RNN Example in Tensorflow - Deep Learning with Neural Networks 11

] at ?

RNN Example in Tensorflow - Deep Learning with Neural Networks 11
2016年09月14日
00:08:51 - 00:14:20