Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outstanding project + a naive comment #7

Open
limoon20 opened this issue May 12, 2021 · 10 comments
Open

Outstanding project + a naive comment #7

limoon20 opened this issue May 12, 2021 · 10 comments

Comments

@limoon20
Copy link

Hello Hungchun,
thank you for sharing this outstanding tool.
I have added two lines to your code (in my PC, do not panic :-) ) data_preprocessing.py, i.e.
np.save('test_predict_index.npy', test_predict_index)
np.save('train_predict_index.npy', train_predict_index)
Because, "baseline_LSTM.py" was complaining that it could not find them.
Please, let me know if there is a more elegant way to solve this issue.
Thank you for your time,
LM

@IWantDayDayUp
Copy link

Hello Hungchun,
thank you for sharing this outstanding tool.
I have added two lines to your code (in my PC, do not panic :-) ) data_preprocessing.py, i.e.
np.save('test_predict_index.npy', test_predict_index)
np.save('train_predict_index.npy', train_predict_index)
Because, "baseline_LSTM.py" was complaining that it could not find them.
Please, let me know if there is a more elegant way to solve this issue.
Thank you for your time,
LM

Hi, dear limoon20
May i ask you a question, please?
I have downloaded this source code and tested it on my PC.
But , there is a problem which is located on {4.Basic_GAN.py, function: ''train_step(self, real_x, real_y, yc)'', line no.83}.
The error information is :"Input 'b' of 'MatMul' Op has type float32 that does not match type float64 of argument 'a'."
And i don't know how to fix it.
Have you encountered a similar problem when you run 4.Basic_GAN.py?
Thank you very much.

@limoon20
Copy link
Author

limoon20 commented May 14, 2021 via email

@IWantDayDayUp
Copy link

@limoon20
I think it is my PC python environment that is not suitable for the code.

Could you share the 'requirments.txt' with me so that I can get right environmental to run the code?
If you can, please contact me with the email: xuem7294@gmail.com.
Thanks in advance.

@limoon20
Copy link
Author

limoon20 commented May 15, 2021 via email

@IWantDayDayUp
Copy link

@limoon20
I can’t tell you how grateful I am. How can I thank you enough !
The code is working perfectly.
Thank you again.

@thedarkrider69
Copy link

hi everyone

you need to import os and select the directory wich contain your data,

add this

import os
os.chdir("write here path")

see u

@Liuyiben
Copy link

@IWantDayDayUp
你好,我运行代码也遇到了跟你一样的错误,你是如何解决的,求告知,万分感谢!!

@IWantDayDayUp
Copy link

IWantDayDayUp commented Oct 31, 2021 via email

@Liuyiben
Copy link

Liuyiben commented Oct 31, 2021 via email

@nikeybanna
Copy link

Hello @limoon20 I have certain error in running the code in 4.Basic_GAN.py

when running this code

if name == 'main':
input_dim = X_train.shape[1]
feature_size = X_train.shape[2]
output_dim = y_train.shape[1]

For Bayesian

opt = {"lr": 0.00016, "epoch": 165, 'bs': 128}
generator = make_generator_model(X_train.shape[1], output_dim, X_train.shape[2])
discriminator = make_discriminator_model()
gan = GAN(generator, discriminator, opt)
Predicted_price, Real_price, RMSPE = gan.train(X_train, y_train, yc_train, opt)

error showing
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1848/1524428345.py in
4 discriminator = make_discriminator_model()
5 gan = GAN(generator, discriminator, opt)
----> 6 Predicted_price, Real_price, RMSPE = gan.train(X_train, y_train, yc_train, opt)

AttributeError: 'GAN' object has no attribute 'train'

please provide me solution or give the link of your project so that I can see the code and built the model on my pc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants