preprocessing.scaling
logger_config
logger
rescaling
def rescaling(config: dict,
read_from_variable: str = "position_processed",
save_to_variable: str = "position_scaled",
save_logs: bool = True) -> None
Rescale the position data by dividing by the individual scale values.
Parameters
- config (
dict): Configuration dictionary. - read_from_variable (
str, optional): Variable to read from the dataset. - save_to_variable (
str, optional): Variable to save the rescaled data to. - save_logs (
bool, optional): Whether to save logs.
Returns
None
rescale_dataset
def rescale_dataset(ds: xr.Dataset, read_from_variable: str,
save_to_variable: str) -> None
Divide one session's positions by each individual's individual_scale, in place.
Parameters
- ds (
xr.Dataset): Session dataset. - read_from_variable (
str): Variable to read from the dataset. - save_to_variable (
str): Variable to save the rescaled data to.
Returns
None