MCPcopy Create free account
hub / github.com/SHAILAB-IPEC/OpenFly-Platform / get_action_dim

Method get_action_dim

train/model/load_model.py:118–122  ·  view source on GitHub ↗

Dimensionality of the policy's action space.

(self, unnorm_key: Optional[str] = None)

Source from the content-addressed store, hash-verified

116 return unnorm_key
117
118 def get_action_dim(self, unnorm_key: Optional[str] = None) -> int:
119 """Dimensionality of the policy's action space."""
120 unnorm_key = self._check_unnorm_key(self.norm_stats, unnorm_key)
121
122 return len(self.norm_stats[unnorm_key]["action"]["q01"])
123
124 def get_action_stats(self, unnorm_key: Optional[str] = None) -> Dict:
125 """Dimensionality of the policy's action space."""

Callers 1

predict_actionMethod · 0.95

Calls 1

_check_unnorm_keyMethod · 0.95

Tested by

no test coverage detected