Regression forecasting and predicting - Practical Machine Learning Tutorial with Python p.5
In this video, make sure you define the X’s like so. I flipped the last two lines by mistake:
X = (([’label’],1))
X = (X)
X_lately = X[-forecast_out:]
X = X[:-forecast_out:]
To forecast out, we need some data. We decided that we’re forecasting out 10% of the data, thus we will want to, or at least *can* generate forecasts for each of the final 10% of the dataset. So when can we do this? When would we identify that data? We could call it now, but consider the data we’re trying to forecast is not scaled like the training data was. Okay, so then what? Do we just do () against the last 10%? The scale method scales based on all of the known data that is fed into it. Ideally, you would scale both the training, testing, AND forecast/predicting data all together. Is this always possible or reasonable? No. If you can do it, you should, however. In our case, right now, we can do it. Our data is small enough and the processing time is low enough, so we’ll preprocess and scale the data all at once.
In many cases, you wont be able to do this. Imagine if you were using gigabytes of data to train a classifier. It may take days to train your classifier, you wouldn’t want to be doing this you wanted to make a prediction. Thus, you may need to either NOT scale anything, or you may scale the data separately. As usual, you will want to test both options and see which is best in your specific case.
With that in mind, let’s handle all of the rows from the definition of X onward.
sentdex
1 view
82
20
4 months ago 07:49:36 1
The Art of Thinking Clearly: Rolf Dobelli | FULL AUDIOBOOK
8 months ago 00:48:33 1
💥Что 200% СЛУЧИТСЯ В Ближайшие 10 ДНЕЙ❓таро прогноз
12 months ago 08:12:37 2
Python for Machine Learning full Course | Learn AI
1 year ago 00:14:28 1
Regression forecasting and predicting - Practical Machine Learning Tutorial with Python p.5
1 year ago 00:10:58 3
Regression Intro - Practical Machine Learning Tutorial with Python p.2
1 year ago 00:18:39 13
Множественная Линейная Регрессия || Машинное Обучение
3 years ago 00:33:38 1
How to fit a SARIMA Model on time series data
3 years ago 00:45:40 11
[Data Talk] Predict the Future with AI: Time Series Forecasting Best Practices
4 years ago 00:54:22 8
Evolutionary automation of ML pipelines with FEDOT Framework, Nikitin Nikolay
4 years ago 00:26:24 1
Introduction to the normal distribution | Probability and Statistics | Khan Academy
4 years ago 02:12:52 2
Linear Regression in Machine Learning | Linear Regression Algorithm | Great Learning
4 years ago 00:03:43 1
Forecast Electrical Load Using the Regression Learner App
4 years ago 00:06:25 1
Pickling and Scaling - Practical Machine Learning Tutorial with Python p.6
5 years ago 01:11:53 15
Data Science for Business Lecture 4. Data Science in Retail. Forecasting with regression.
5 years ago 00:10:55 14
Auto Regressive Time Series Model in Python
6 years ago 00:32:55 1
Machine Learning Tutorial Chap 3| Part-1 Simple Linear Regression | GreyAtom