Skip to content

Commit b76694a

Browse files
[Ponicode] Docstrings created (#20)
* [ponicode-pull-request] Ponicode wrote new docstrings! * Update dataset.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jules Belveze <32683010+JulesBelveze@users.noreply.github.com>
1 parent 9bff0e7 commit b76694a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tsa/dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def get_loaders(self, batch_size: int):
8888
return train_iter, test_iter, nb_features
8989

9090
def invert_scale(self, predictions):
91+
"""
92+
Inverts the scale of the predictions
93+
"""
9194
if isinstance(predictions, torch.Tensor):
9295
predictions = predictions.numpy()
9396
unscaled = self.y_scaler.inverse_transform(predictions)

0 commit comments

Comments
 (0)