Comments (4)
Yes, you are completely correct. Thanks for catching this error, I will fix it now
from shimmy.
I think that @ottofabian wished to add access to the control_timestep with
@property
def dt(self):
return self.model.opt.timestep * self.frame_skip
When he had time
from shimmy.
@ottofabian Hey, yes these seem like very good suggestions. Could you make a PR that implements both of the suggestions?
from shimmy.
I can do that, but I am currently busy with something else and this will probably take some time.
An another note, is the termination
and truncation
correctly implemented?
Based on the dm_control code,
if self._step_count >= self._step_limit:
discount = 1.0
else:
discount = self._task.get_termination(self._physics)
episode_over = discount is not None
if episode_over:
self._reset_next_step = True
return dm_env.TimeStep(
dm_env.StepType.LAST, reward, discount, observation)
else:
return dm_env.TimeStep(dm_env.StepType.MID, reward, 1.0, observation)
I think it should be reversed, i.e. discount==0
is a termination. For the time limit (aka truncated) the discount is 1.0
, 0.0
for failure or final step of finite horizon tasks, such as for LQR, and any other value !=0
when the environment artificially ends the task.
From a consistency perspective, 1.0 also makes more sense given the default value is 1.0 for intermediate and steps.
Some examples and details are also provided in the dm_control documentation.
from shimmy.
Related Issues (20)
- Cannot use supersuit color_reduction_v0 with Shimmy HOT 2
- PettingZoo Update breaks Shimmy HOT 1
- meaning of gym v21 HOT 2
- [Bug] incompatible with latest version of Meltingpot HOT 1
- [Bug] Melting pot wrapper fails with newer versions of pettingzoo's tests.
- MeltingPotCompatabilityV0 & supersuit concat_vec_envs HOT 5
- Add support for Melting Pot scenarios HOT 6
- Bug in Shimmy v1.3.0 with DM-Control 1.0.15+: IndexError in 'torch.nn.modules.flatten' HOT 1
- Reasoning for rendering FPS for dm_control environments HOT 1
- Options are being ignored HOT 1
- Check when importing gym wrappers
- Add support for dm ai-safety-gridworlds
- Checklist for Maturity HOT 2
- Not import all compatibility wrappers in `__init__.py`
- Import issue: AttributeError: module 'pettingzoo' has no attribute 'AECEnv'
- Possibility to render multiple cameras at the same time in dm_control environments HOT 6
- Add release notes on website
- Dependencies not fixed (pettingzoo issues) HOT 1
- Broken dm_control.viewer HOT 14
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 shimmy.