You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I loaded a Dataset with LTCUSDT data from binance (Format: Timestamp;Open;Low,High;Close;Volume)
I now got the following error:
agent not loaded
binanceData_LTCUSDT_1m.csv : 0%| | 0/1 [00:00<?, ?it/sException in thread Thread-3: | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):█████▉| 200994/200998 [54:19<00:00, 27.90it/s]
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/alcon/Desktop/TradzQAI/TradzQAI/core/worker/local_worker.py", line 23, in run
self.step()
File "/home/alcon/Desktop/TradzQAI/TradzQAI/core/worker/local_worker.py", line 46, in step
state, terminal, reward = self.env.execute(action)
File "/home/alcon/Desktop/TradzQAI/TradzQAI/core/environnement/local_env.py", line 178, in execute
self.check_time_before_closing()
File "/home/alcon/Desktop/TradzQAI/TradzQAI/core/environnement/base/base_env.py", line 148, in check_time_before_closing
self.step_left = idx - self.current_step['step'] + 1
UnboundLocalError: local variable 'idx' referenced before assignment
binanceData_LTCUSDT_1m.csv : 100%|██████████████| 1/1 [54:19<00:00, 3259.48s/it]
^[[A Processing : 100%|████████████████▉| 200996/200998 [54:19<00:00, 61.67it/s]
Looking at the function i see that the runnervar idx is really not defined in the last line. I then defined the var at the begining as idx=0
def check_time_before_closing(self):
if self.current_step['step'] == self.len_data - 1:
return
for idx in range(self.current_step['step'] + 1 , self.len_data - 1):
if self._date[idx - 1][7] != self._date[idx][7]:
break
self.step_left = idx - self.current_step['step'] + 1
The process ran smothly with my own data and the dax data in the repo but when running python3 run.py -m eval and checking the save logs everything is 0 like this:
I loaded a Dataset with LTCUSDT data from binance (Format: Timestamp;Open;Low,High;Close;Volume)
I now got the following error:
Looking at the function i see that the runnervar idx is really not defined in the last line. I then defined the var at the begining as idx=0
The process ran smothly with my own data and the dax data in the repo but when running python3 run.py -m eval and checking the save logs everything is 0 like this:
Any idea what i can do?
The text was updated successfully, but these errors were encountered: