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

ValueError: invalid literal for int() with base 10: 'n' #5

Open
MotorCityCobra opened this issue Feb 25, 2018 · 2 comments
Open

ValueError: invalid literal for int() with base 10: 'n' #5

MotorCityCobra opened this issue Feb 25, 2018 · 2 comments

Comments

@MotorCityCobra
Copy link

File "/Users/Computer/stock/LSTM2/forex.py", line 84, in read_data
int(str(date)[0:-2][6:8])).weekday() for date in dates])
ValueError: invalid literal for int() with base 10: 'n'
$

@MotorCityCobra
Copy link
Author

MotorCityCobra commented Feb 26, 2018

Replaced line 84 on in forex.py

    days = numpy.array([datetime.datetime(int(str(date)[0:-2][0:4]),int(str(date)[0:-2][4:6]),
                int(str(date)[0:-2][6:8])).weekday() for date in dates])
    months = numpy.array([datetime.datetime(int(str(date)[0:-2][0:4]),int(str(date)[0:-2][4:6]),
                int(str(date)[0:-2][6:8])).month for date in dates])

with

days = numpy.array(pandas.Timestamp(date).weekday() for date in dates])
months = numpy.array(pandas.Timestamp(date).month() for date in dates])

@MotorCityCobra
Copy link
Author

But now it's looking for some _params.npz' file
Where is this supposed to be from? Where do I get this npz file?

Not much help description in this repo

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

1 participant