jcwleo / awr-pytorch Goto Github PK
View Code? Open in Web Editor NEWAdvantage-Weighted Regression
License: MIT License
Advantage-Weighted Regression
License: MIT License
Hi ! Thanks for the implementation,
In your discount function, you write:
def discount_return(reward, done, value):
value = value.squeeze()
num_step = len(value)
discounted_return = np.zeros([num_step])
gae = 0
for t in range(num_step - 1, -1, -1):
if dones[t]:
delta = reward[t] - value[t]
else:
delta = reward[t] + gamma * value[t + 1] - value[t]
gae = delta + gamma * lam * (1 - done[t]) * gae
discounted_return[t] = gae + value[t]
Shouldn't the first condition be if done[t]
?
Thanks !
Hello, I am reimplementing AWR in my own PyTorch codebase, and I haven't been able to get it to work as well as in the paper (on PyBullet Gym environments). I think this is the only other implementation of AWR I have found apart from the initial TF code, but it doesn't seem to work.
Have you been able to get it to train policies well?
jason peng의 논문보면 아예 awr를 off policy로 분류하고, buffer sampling을 하는데 코드는 ppo 나 a3c 처럼 mp로 구현되어 있길래 여쭤보고 싶었습니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.