thbndi commited on
Commit
f50d11e
·
1 Parent(s): 87d95cd

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +1 -1
Mimic4Dataset.py CHANGED
@@ -414,7 +414,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
414
  self.config_path = kwargs.pop("config_path",None)
415
  self.test_size = kwargs.pop("test_size",0.2)
416
  self.val_size = kwargs.pop("val_size",0.1)
417
- if self.encoding != 'onehot' or self.encoding != 'deep' or self.encoding is not None:
418
  raise ValueError("Encoding must be either onehot, deep or raw")
419
  super().__init__(**kwargs)
420
 
 
414
  self.config_path = kwargs.pop("config_path",None)
415
  self.test_size = kwargs.pop("test_size",0.2)
416
  self.val_size = kwargs.pop("val_size",0.1)
417
+ if self.encoding != 'onehot' or self.encoding != 'deep' or self.encoding != 'raw':
418
  raise ValueError("Encoding must be either onehot, deep or raw")
419
  super().__init__(**kwargs)
420