index = random.randint(0, len(self.ehr_files_unpaired)-1)
in datasets/fusion.py produces duplicate samples in dataset ‘partial_ehr_cxr’ about 20% (depending on the random seed). If you want to get the dataset without duplicate samples, considering use
The code
index = random.randint(0, len(self.ehr_files_unpaired)-1)
in datasets/fusion.py produces duplicate samples in dataset ‘partial_ehr_cxr’ about 20% (depending on the random seed). If you want to get the dataset without duplicate samples, considering use
index = index - len(self.ehr_files_paired)
Thanks.