8 Commits
Author SHA1 Message Date
Mike Clark ed943a6356 Use logits in CategoricalActorCriticNet
A really minor change. Should we input logits instead of probs into `Categorical`? It will do less converting from logits and back, leading to increased stability during training (theoretically).
2018-06-15 08:24:14 +08:00
Mike Clark db94825b19 load_state_dict for Normalizer, StaticNormalizer 2018-02-02 15:14:49 +08:00
Mike Clark 9b7d21a0f2 load and save for SharedReplay
Not sure if your interested in adding this, it just supports saving and loading SharedReplay. For example if you want to load previous DDPG experience.
2018-02-02 15:11:44 +08:00
wassname e16a560abc let ppo work with gpu 2017-11-15 09:40:58 +08:00
wassname aec67c66f8 Merge branch 'master' of https://github.com/ShangtongZhang/DeepRL 2017-11-15 09:38:53 +08:00
Mike Clark deab7043fc add eps to avoid NaN
I tracked some NaN's I was getting down to here. It happens when std is a small number, then var is even smaller, and log_density=inf. There are some problems where the agent will learn to use small standard deviations because jittering movements have a high cost, this makes those more stable.
2017-11-04 16:24:54 +08:00
wassname 662c0834f6 This helps me avoid NaN when I have small rewards 2017-11-01 18:58:03 +08:00
Mike Clark 212ff0bc70 moving epsilon outside softplus
I think you intended this to be outside the softplus. The reason is that it should be applied just before the log to avoid `log(0)=inf`.e.g.

- `log(softplus(-1000+1e-5))=log(0)=inf`. 
- `log(softplus(-1000)+1e-5)=log(1e-5)!=inf`. 

Also this fixes a NaN I had.
2017-11-01 10:52:23 +08:00