kngwyu / rainy Goto Github PK
View Code? Open in Web Editor NEW:umbrella: Deep RL agents with PyTorch:umbrella:
License: Apache License 2.0
:umbrella: Deep RL agents with PyTorch:umbrella:
License: Apache License 2.0
Now we have two types of agents
OneStep
algorithms to batched-parallel style without rewriting the whole process.So we should re-define agent hierarchies using some important properties, like
To correctly evaluate PyBullet envs.
Our CLI tool should be more customizable like RLPy3's one.
There's environments only with VecEnv
(like coinrun) so it's desirable to enable to set None as eval_env.
rms.py and atari_wrappers.py are copied from openai baselines, and not well written.
They need refactoring.
Now they're only in parallel wrappers
https://github.com/openai/gym#what-s-new
It is introduced in v0.15.2.
Now we use wrappers ported from baselines, but it's good time to migrate.
Currently loss is reported occasionally but we should compute running stats of loss and report it.
It may be useful for debugging and parameter tuining
Hi @kngwyu,
When I ran your bootdqn_cartpole.py like this:
python examples\bootdqn_cartpole.py train
I got:
Traceback (most recent call last):
File "examples\bootdqn_cartpole.py", line 21, in
) -> Config:
File "C:\rainy\cli.py", line 227, in decorator
rainy_cli(obj=_CLIContext(f, agent, agent_selector, script_path))
File "C:\Miniconda3\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\Miniconda3\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Miniconda3\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Miniconda3\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Miniconda3\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Miniconda3\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\rainy\cli.py", line 52, in train
experiment.train(eval_render=eval_render)
File "C:\rainy\experiment.py", line 97, in train
for res in self.ag.train_episodes(self.config.max_steps):
File "C:\rainy\agents\base.py", line 274, in train_episodes
self.store_transition(state, action, *transition[:-1]) # Do not pass info
TypeError: store_transition() takes 4 positional arguments but 6 were given
Thanks for your help!
BTW:
I can run your dqn_cartpole.py like this:
python examples\dqn_cartpole.py train
with no problems.
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.