Comments (4)
In addition to this, BatchSampler seems to not implement the obtain_samples() function. on fixing the typo locally, I encounter:
Traceback (most recent call last):
File "/home/tom/rllab/scripts/run_experiment_lite.py", line 103, in
run_experiment(sys.argv)
File "/home/tom/rllab/scripts/run_experiment_lite.py", line 90, in run_experiment
maybe_iter = concretize(data)
File "/home/tom/rllab/rllab/misc/instrument.py", line 898, in concretize
return method(_args, *_kwargs)
File "/home/tom/rllab/rllab/algos/batch_polopt.py", line 244, in train
paths = self.sampler.obtain_samples(itr)
File "/home/tom/rllab/rllab/sampler/base.py", line 19, in obtain_samples
raise NotImplementedError
NotImplementedError
When trying to run several of the TRPO examples.
from rllab.
@jachiam @singulaire Really sorry about this. Should be fixed by 25f38dc
from rllab.
There were a couple lines that got cut off when @dementrock did a refactoring after my pull request. It should be fixed when the pull request is merged, or you can apply this patch.
From 7ed6ea686478d31fe53781be2ef81cdcf3a1c9ac Mon Sep 17 00:00:00 2001
From: Alex Beloi <[email protected]>
Date: Thu, 23 Jun 2016 09:52:12 -0700
Subject: [PATCH] fix: missing lines from refactoring BatchPolopt
---
rllab/algos/batch_polopt.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rllab/algos/batch_polopt.py b/rllab/algos/batch_polopt.py
index 5aac591..77d0f4b 100644
--- a/rllab/algos/batch_polopt.py
+++ b/rllab/algos/batch_polopt.py
@@ -21,9 +21,13 @@ class BatchSampler(Sampler):
def shutdown_worker(self):
parallel_sampler.terminate_task(scope=self.algo.scope)
+
+ def obtain_samples(self, itr):
+ cur_params = self.algo.policy.get_param_values()
+ paths = parallel_sampler.sample_paths(
+ policy_params=cur_params,
max_samples=self.algo.batch_size,
max_path_length=self.algo.max_path_length,
- scope=self.algo.scope,
)
if self.algo.whole_paths:
return paths
--
1.9.1
from rllab.
Closing this as it should be fixed now.
from rllab.
Related Issues (20)
- gym.wrappers.monitoring import error HOT 1
- Problem running rllab MazeAntEnv HOT 2
- ImportError: cannot import name 'MemmapingPool' HOT 8
- How to record videos in SwimmerGatherEnv
- Error Using Custom Env + GaussianGRU + VPG
- Docker intended running environment HOT 2
- Gaussian Policy - no inputs
- can not find files vendor/mujoco/ HOT 4
- Dockerfiles unnecessarily large
- AttributeError: 'NoneType' object has no attribute 'put' HOT 1
- Difference between std_hidden_nonlinearity and hidden_nonlinearity?
- gradient descent to optimize the TRPO or PPO algorithm?
- No module named 'cached_property' HOT 1
- How to improve the GPU-Util when running RL program with RLLab. HOT 2
- setup_linux.sh always exits before creating environment
- Error while instantiating <class 'rllab.envs.gym_env.GymEnv'> HOT 1
- [Installation Issue]: ResolvePackageNotFound HOT 2
- How to test trained model??
- ResolvePackageNotFound:
- Stuck while training at 977 itr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rllab.