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

list index out of range #21

Open
guijames opened this issue Jan 30, 2021 · 2 comments
Open

list index out of range #21

guijames opened this issue Jan 30, 2021 · 2 comments

Comments

@guijames
Copy link

After running the below:

python detection_engine.py --top_n 25 --min_volume 5000 --data_granularity_minutes 60 --history_to_use 14 --is_load_from_dictionary 0 --data_dictionary_path 'dictionaries/data_dict.npy' --is_save_dictionary 1 --is_test 0 --future_bars 0

Here is the error message:

Traceback (most recent call last):
File "detection_engine.py", line 357, in
supriver.find_anomalies()
File "detection_engine.py", line 196, in find_anomalies
features, historical_price_info, future_prices, symbol_names = self.dataEngine.collect_data_for_all_tickers()
File "/Users/Home/Documents/Coding/surpriver-master/data_loader.py", line 211, in collect_data_for_all_tickers
features, historical_price_info, future_price_info, symbol_names = self.remove_bad_data(features, historical_price_info, future_price_info, symbol_names)
File "/Users/Home/Documents/Coding/surpriver-master/data_loader.py", line 249, in remove_bad_data
most_common_length = length_dictionary[0]
IndexError: list index out of range

@xeonvs
Copy link

xeonvs commented Aug 11, 2021

Use this patch
https://pastebin.com/VeVTfJQ1

@guijames
Copy link
Author

guijames commented Sep 24, 2021 via email

amedeiros added a commit to amedeiros/surpriver that referenced this issue Sep 29, 2021
amedeiros added a commit to amedeiros/surpriver that referenced this issue Sep 29, 2021
amedeiros added a commit to amedeiros/surpriver that referenced this issue Sep 29, 2021
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