Returns the Cartpole Balance task.
(time_limit=_DEFAULT_TIME_LIMIT, random=None,
environment_kwargs=None)
| 38 | |
| 39 | @SUITE.add('benchmarking') |
| 40 | def balance(time_limit=_DEFAULT_TIME_LIMIT, random=None, |
| 41 | environment_kwargs=None): |
| 42 | """Returns the Cartpole Balance task.""" |
| 43 | physics = Physics.from_xml_string(*get_model_and_assets()) |
| 44 | task = Balance(swing_up=False, sparse=False, random=random) |
| 45 | environment_kwargs = environment_kwargs or {} |
| 46 | return control.Environment( |
| 47 | physics, task, time_limit=time_limit, **environment_kwargs) |
| 48 | |
| 49 | |
| 50 | @SUITE.add('benchmarking') |
nothing calls this directly
no test coverage detected
searching dependent graphs…