Skip to content

unienv_interface.transformations.rescale

Classes:

Name Description
RescaleTransformation

RescaleTransformation

RescaleTransformation(
    new_low: Union[BArrayType, float] = -1.0,
    new_high: Union[BArrayType, float] = 1.0,
    new_dtype: Optional[BDtypeType] = None,
    nan_to: Optional[Union[float, int, BArrayType]] = None,
)

Bases: DataTransformation

Methods:

Name Description
get_target_space_from_source
transform
direction_inverse
serialize
deserialize_from
close

Attributes:

Name Type Description
has_inverse
new_low
new_high
new_dtype
nan_to

has_inverse class-attribute instance-attribute

has_inverse = True

new_low instance-attribute

new_low = new_low

new_high instance-attribute

new_high = new_high

new_dtype instance-attribute

new_dtype = new_dtype

nan_to instance-attribute

nan_to = nan_to

get_target_space_from_source

get_target_space_from_source(source_space)

transform

transform(source_space, data)

direction_inverse

direction_inverse(source_space=None)

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,
) -> RescaleTransformation

close

close()