From 1ddd3c79b3d3287926689bf723076d1c502f948a Mon Sep 17 00:00:00 2001 From: Lenz Fiedler <37868410+RandomDefaultUser@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:26:54 +0100 Subject: [PATCH] Update mala/datahandling/data_scaler.py Co-authored-by: Steve Schmerler --- mala/datahandling/data_scaler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mala/datahandling/data_scaler.py b/mala/datahandling/data_scaler.py index 86852161d..7483433a4 100644 --- a/mala/datahandling/data_scaler.py +++ b/mala/datahandling/data_scaler.py @@ -380,7 +380,7 @@ def inverse_transform(self, scaled, copy=False, as_numpy=False): # Perform the actual scaling, but use no_grad to make sure # that the next couple of iterations stay untracked. - unscaled = scaled if copy is False else scaled.clone() + unscaled = scaled.clone() if copy else scaled # First we need to find out if we even have to do anything. if self.scale_standard is False and self.scale_minmax is False: