mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-09-17 12:20:27 +08:00
Convert code to python 2.7 (#35)
* Convert code format to python2.7 (SAC) * Convert code format python2.7 (TD3, all fD) * Remove no use import and black setting * Change SAC param * Change env name Reacher-v2 to v1 * Remove old version reacher training script * Convert code format python2.7 * Modify .travis.yml * Add install command python3.6 & black on Makefile * Fix seperator to tab on Makefile * Modify Makefile * Fix little error * Change td3 gamma parameter
This commit is contained in:
@@ -114,7 +114,7 @@ if __name__ == "__main__":
|
||||
loss.backward()
|
||||
optimizer.step()
|
||||
|
||||
print(f"[epoch: {i}] loss: {loss}")
|
||||
print ("[epoch: %d] loss: %f" % i, loss)
|
||||
|
||||
# eval
|
||||
eval_data = generate_wave_data(x_range, input_wave_nm, True, num_test_waves)
|
||||
|
||||
Reference in New Issue
Block a user