Skip to content

Instantly share code, notes, and snippets.

@karamanbk
Created June 9, 2019 08:23
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 26 You must be signed in to fork a gist
  • Save karamanbk/fae78e4b0894cc0812812e4e600e5860 to your computer and use it in GitHub Desktop.
Save karamanbk/fae78e4b0894cc0812812e4e600e5860 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ankitrules27
Copy link

Hello you are predicitng for the interval that is present on the dataset but what about for the predicitng of the furthur month which are not the part of the datset. Like for eg for 01-01-2018.

@aBOBination
Copy link

I was wonder the same as above. How does one predict into the future? Did you get this figured out @ankitrules27

@thomas2907
Copy link

thomas2907 commented Feb 15, 2020

Hello, nice script and works very good.
I have the same question as above.
How can you make a prediction for the next couple of months?
@ankitrules27 @aBOBination where you able to find out?

Thank you in advance

@mujtaba617
Copy link

I need the data for this notebook. Does anyone have the source?

@vs-sakthi
Copy link

Could you please explain how we going to predict for future months data where actual Sales data not present?

@dimlib
Copy link

dimlib commented Mar 31, 2020

I have the very same question as above. Anyone with an answer?

@shuchangliang
Copy link

3 input dimensions for LSTM should be: samples, time steps, and features. but yours is samples, features and time steps?

@shuchangliang
Copy link

I have the very same question as above. Anyone with an answer?

The dataset he put it in the article please read it.

@shuchangliang
Copy link

I need the data for this notebook. Does anyone have the source?

He put the dataset in the article, please read!

@shuchangliang
Copy link

Hello, nice script and works very good.
I have the same question as above.
How can you make a prediction for the next couple of months?
@ankitrules27 @aBOBination where you able to find out?

Thank you in advance

If you have the last month data then you can predict the month right after the last month

@randradegh
Copy link

I need the data for this notebook. Does anyone have the source?

Just copy train.csv to sales_data.csv. Look for the data files on the article: https://www.kaggle.com/c/demand-forecasting-kernels-only/data

@Shamanbazooka
Copy link

Good day!

I am getting error on indent 41
print np.concatenate([y_pred[index],X_test[index]],axis=1)
^
SyntaxError: invalid syntax

In [41]:

#rebuild test set for inverse transform
pred_test_set = []
for index in range(0,len(y_pred)):
print np.concatenate([y_pred[index],X_test[index]],axis=1)
pred_test_set.append(np.concatenate([y_pred[index],X_test[index]],axis=1))

Please tell me the solution.

Thank you

@marsilinou97
Copy link

marsilinou97 commented May 10, 2021

Good day!

I am getting error on indent 41
print np.concatenate([y_pred[index],X_test[index]],axis=1)
^
SyntaxError: invalid syntax

In [41]:

#rebuild test set for inverse transform
pred_test_set = []
for index in range(0,len(y_pred)):
print np.concatenate([y_pred[index],X_test[index]],axis=1)
pred_test_set.append(np.concatenate([y_pred[index],X_test[index]],axis=1))

Please tell me the solution.

Thank you

This is running version 2.X of python, while you're running python 3.X, just add () for the print print(np.concatenate([y_pred[index],X_test[index]],axis=1))

@Shamanbazooka
Copy link

Добрый день!
Я получаю ошибку при
отступе 41 print np.concatenate ([y_pred [index], X_test [index]], axis = 1)
^
SyntaxError: недопустимый синтаксис
В [41]:
#rebuild набор тестов для обратного преобразования
pred_test_set = []
для индекса в диапазоне (0, len (y_pred)):
print np.concatenate ([y_pred [index], X_test [index]], axis = 1)
pred_test_set.append (np .concatenate ([y_pred [индекс], X_test [индекс]], ось = 1))
Подскажите пожалуйста решение.
Спасибо

Это работает под управлением Python версии 2.X, в то время как вы используете Python 3.X, просто добавьте () для печати print(np.concatenate([y_pred[index],X_test[index]],axis=1))

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment