mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 15:26:54 +08:00
Checking dataset empty (#647)
* Checking dataset empty * add dataset checker
This commit is contained in:
@@ -385,6 +385,10 @@ class TSDataSampler:
|
||||
idx_map[real_idx] = (i, j)
|
||||
return idx_df, idx_map
|
||||
|
||||
@property
|
||||
def empty(self):
|
||||
return self.__len__() == 0
|
||||
|
||||
def _get_indices(self, row: int, col: int) -> np.array:
|
||||
"""
|
||||
get series indices of self.data_arr from the row, col indices of self.idx_df
|
||||
|
||||
Reference in New Issue
Block a user