Skip to content

Commit

Permalink
added to_be_normalized update in get_normalized_inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nepslor committed Nov 20, 2023
1 parent 3abde91 commit 89b0331
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyforecaster/forecasting_models/neural_forecasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ def iterate(x, y, opt_state, **objective_kwargs):

def get_normalized_inputs(self, inputs):
inputs = inputs.copy()
self.to_be_normalized = [c for c in inputs.columns if c not in self.unnormalized_inputs] if self.unnormalized_inputs is not None else inputs.columns
normalized_inputs = self.scaler.transform(inputs[self.to_be_normalized])
inputs.loc[:, self.to_be_normalized] = normalized_inputs.copy().values

Expand Down

0 comments on commit 89b0331

Please sign in to comment.