Minor fixes
This commit is contained in:
@ -200,13 +200,12 @@ for ep in range(num_episodes):
|
||||
|
||||
|
||||
|
||||
|
||||
state = next_state
|
||||
|
||||
|
||||
# Only train the network if we have enough
|
||||
# transitions in memory to do so.
|
||||
if len(memory) >= BATCH_SIZE:
|
||||
|
||||
state = next_state
|
||||
|
||||
# Run optimizer
|
||||
optimize.optimize_model(
|
||||
memory,
|
||||
|
Reference in New Issue
Block a user