MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / balance

Function balance

dm_control/suite/cartpole.py:40–47  ·  view source on GitHub ↗

Returns the Cartpole Balance task.

(time_limit=_DEFAULT_TIME_LIMIT, random=None,
            environment_kwargs=None)

Source from the content-addressed store, hash-verified

38
39@SUITE.add('benchmarking')
40def 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')

Callers

nothing calls this directly

Calls 3

get_model_and_assetsFunction · 0.70
BalanceClass · 0.70
from_xml_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…