MCPcopy Create free account
hub / github.com/ElliotVincent/SitsSCD / random_date_augmentation

Method random_date_augmentation

data/data.py:225–229  ·  view source on GitHub ↗
(self, month)

Source from the content-addressed store, hash-verified

223 return data, days
224
225 def random_date_augmentation(self, month):
226 if self.split == 'train':
227 return max(0, random.randint(0, self.date_aug_range * 2) - self.date_aug_range + self.monthly_dates[month])
228 else:
229 return self.monthly_dates[month]
230
231
232def collate_fn(batch):

Callers 1

load_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected