Skip to content

Commit

Permalink
modified condition for denormalization
Browse files Browse the repository at this point in the history
  • Loading branch information
vascomedici committed Aug 7, 2024
1 parent 08575d9 commit 26827cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyforecaster/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ def predict(self, x, **kwargs):
pass

def anti_transform(self, x, y_hat):
if self.formatter is not None:
if self.formatter.target_transformers is not None:
y_hat = self.formatter.denormalize(x, y_hat)
if self.formatter is not None and self.formatter.denormalizing_fun is not None:
y_hat = self.formatter.denormalize(x, y_hat)
return y_hat

@abstractmethod
Expand Down

0 comments on commit 26827cf

Please sign in to comment.