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

give me a hand,please #1

Open
machulong opened this issue Nov 9, 2022 · 1 comment
Open

give me a hand,please #1

machulong opened this issue Nov 9, 2022 · 1 comment

Comments

@machulong
Copy link

parser.add_argument('--mode', nargs='?', default='predict', help = "back-test or predict")

Traceback (most recent call last):

File "C:\Users\Administrator\Desktop\Lottery_Prediction-main\Lottery_prediction\main.py", line 40, in
dataset = DataLoader(args.data_dir, args.training_length, args.window, args.mode)

File "C:\Users\Administrator\Desktop\Lottery_Prediction-main\Lottery_prediction\data.py", line 23, in init
train_X, test_X, train_y, test_y = self.preproc_entire()

File "C:\Users\Administrator\Desktop\Lottery_Prediction-main\Lottery_prediction\data.py", line 47, in preproc_entire
test_X, test_y = test[:, :n_obs], test[:, -ENTIRE_NUMBER:]

IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

@jindeok
Copy link
Owner

jindeok commented Feb 6, 2023

Sorry for the late response!

I think you are trying to index a 1-dimensional array with 2 indices.
you should 1) check whether you put the data path correctly or 2) investigate the dimension of the 'test' array.

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

2 participants