Update DEBUG INFO

This commit is contained in:
D-X-Y
2021-05-10 14:14:06 +08:00
parent 147da98f94
commit 0dbbc286c9
8 changed files with 536 additions and 274 deletions

View File

@@ -51,6 +51,10 @@ class SyntheticDEnv(data.Dataset):
def max_timestamp(self):
return self._timestamp_generator.max_timestamp
@property
def timestamp_interval(self):
return self._timestamp_generator.interval
def set_oracle_map(self, functor):
self._oracle_map = functor
@@ -67,6 +71,9 @@ class SyntheticDEnv(data.Dataset):
def __getitem__(self, index):
assert 0 <= index < len(self), "{:} is not in [0, {:})".format(index, len(self))
index, timestamp = self._timestamp_generator[index]
return self.__call__(timestamp)
def __call__(self, timestamp):
mean_list = [functor(timestamp) for functor in self._mean_functors]
cov_matrix = [
[abs(cov_gen(timestamp)) for cov_gen in cov_functor]

View File

@@ -60,6 +60,10 @@ class TimeStamp(UnifiedSplit, data.Dataset):
@property
def max_timestamp(self):
return self._max_timestamp
@property
def interval(self):
return self._interval
def __iter__(self):
self._iter_num = 0