smartcache raises a value error when a large cache_num is provided:
|
if self.cache_num >= len(data): |
|
raise ValueError("cache_num must be smaller than dataset length to support replacement.") |
in this case itd be great to change this to a warning and continue working as a regular CacheDataset