Skip to content
Snippets Groups Projects
Commit 786f0c8c authored by leufen1's avatar leufen1
Browse files

update dummy data handler

parent 59f202ba
No related branches found
No related tags found
4 merge requests!432IOA works now also with xarray and on identical data, IOA is included in...,!431Resolve "release v2.1.0",!430update recent developments,!427Resolve "parallel make_prediction in postprocessing"
Pipeline #101705 passed
...@@ -106,6 +106,9 @@ class DummyData: ...@@ -106,6 +106,9 @@ class DummyData:
Y2 = np.random.randint(21, 30, size=(self.number_of_samples, 5, 1)) # samples, window, variables Y2 = np.random.randint(21, 30, size=(self.number_of_samples, 5, 1)) # samples, window, variables
return [Y1, Y2] return [Y1, Y2]
def get_data(self, upsampling=False, as_numpy=True):
return self.get_X(upsampling, as_numpy), self.get_Y(upsampling, as_numpy)
class TestKerasIterator: class TestKerasIterator:
......
...@@ -150,3 +150,6 @@ class DummyData: ...@@ -150,3 +150,6 @@ class DummyData:
Y1 = np.random.randint(0, 10, size=(self.number_of_samples, 5)) # samples, window Y1 = np.random.randint(0, 10, size=(self.number_of_samples, 5)) # samples, window
Y2 = np.random.randint(21, 30, size=(self.number_of_samples, 3)) # samples, window Y2 = np.random.randint(21, 30, size=(self.number_of_samples, 3)) # samples, window
return [Y1, Y2] return [Y1, Y2]
def get_data(self, upsampling=False, as_numpy=True):
return self.get_X(upsampling, as_numpy), self.get_Y(upsampling, as_numpy)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment