Skip to content
Snippets Groups Projects
Commit 057b47fe authored by lukas leufen's avatar lukas leufen
Browse files

get transformation information (mean, std, method) from data prep class

parent 42ecd142
No related branches found
No related tags found
2 merge requests!24include recent development,!23Lukas issue018 feat evaluate train val
......@@ -249,6 +249,17 @@ class DataPrep(object):
else:
self.inverse_transform()
def get_transformation_information(self, variable):
try:
mean = self.mean.sel({'variables': variable}).values
except AttributeError:
mean = None
try:
std = self.std.sel({'variables': variable}).values
except AttributeError:
std = None
return mean, std, self._transform_method
def make_history_window(self, dim: str, window: int) -> None:
"""
This function uses shifts the data window+1 times and returns a xarray which has a new dimension 'window'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment