tradytics / surpriver

Find big moving stocks before they move using machine learning and anomaly detection
https://www.tradytics.com/
GNU General Public License v3.0
1.76k stars 328 forks source link

list index out of range #21

Open guijames opened 3 years ago

guijames commented 3 years ago

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 commented 3 years ago

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

guijames commented 2 years ago

Thank you! Very much appreciated.

On 11 Aug 2021, at 11:35, Max V. Irgiznov @.***> wrote:

Use this patch https://pastebin.com/VeVTfJQ1 https://pastebin.com/VeVTfJQ1 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tradytics/surpriver/issues/21#issuecomment-896670798, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLJIT7L7CU2Z4HDHXLOYF3T4I75BANCNFSM4W2WVHUA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.