Skip to content

unienv_interface.transformations.iter_transform

IterativeTransformation

IterativeTransformation(transformation: DataTransformation, is_leaf_node_fn: Callable[[Space[Any, BDeviceType, BDtypeType, BRNGType]], bool] = default_is_leaf_fn, inv_is_leaf_node_fn: Callable[[Space[Any, BDeviceType, BDtypeType, BRNGType]], bool] = default_is_leaf_fn)

Bases: DataTransformation

transformation instance-attribute

transformation = transformation

is_leaf_node_fn instance-attribute

is_leaf_node_fn = is_leaf_node_fn

inv_is_leaf_node_fn instance-attribute

inv_is_leaf_node_fn = inv_is_leaf_node_fn

has_inverse instance-attribute

has_inverse = has_inverse

get_target_space_from_source

get_target_space_from_source(source_space: Space[Any, BDeviceType, BDtypeType, BRNGType])

transform

transform(source_space: Space, data: Union[Mapping[str, Any], BArrayType]) -> Union[Mapping[str, Any], BArrayType]

direction_inverse

direction_inverse(source_space=None) -> Optional[IterativeTransformation]

close

close()

serialize

serialize(source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None) -> Dict[str, Any]

deserialize_from classmethod

deserialize_from(json_data: Dict[str, Any], source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None) -> IterativeTransformation

default_is_leaf_fn

default_is_leaf_fn(space: Space[Any, BDeviceType, BDtypeType, BRNGType])

find_leaf_source_space

find_leaf_source_space(source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]], is_leaf_node_fn: Callable[[Space[Any, BDeviceType, BDtypeType, BRNGType]], bool]) -> Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]]