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
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]
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
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]]