Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nakreu authored Mar 4, 2024
1 parent c350272 commit e25cc3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import numpy as np
from copy import deepcopy
import os
from tqdm.auto import tqdm
#from tqdm.auto import tqdm
from gymnasium.wrappers import TimeLimit

def greedy_action(network, state):
Expand Down Expand Up @@ -254,7 +254,7 @@ def load(self):
def fill_buffer(env, agent, buffer_size):
state, _ = env.reset()
print("Fill up memory")
for i in tqdm(range(buffer_size)):
for i in range(buffer_size):
action = agent.act(state)
next_state, reward, done, trunc, _ = env.step(action)
agent.memory.append(state, action, reward, next_state, done)
Expand Down

0 comments on commit e25cc3c

Please sign in to comment.