thbndi commited on
Commit
7399f1e
·
1 Parent(s): f50d11e

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -2
Mimic4Dataset.py CHANGED
@@ -414,10 +414,10 @@ 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 != 'raw':
418
  raise ValueError("Encoding must be either onehot, deep or raw")
419
- super().__init__(**kwargs)
420
-
421
 
422
  BUILDER_CONFIGS = [
423
  Mimic4DatasetConfig(
 
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
+
418
+ super().__init__(**kwargs)
419
  if self.encoding != 'onehot' or self.encoding != 'deep' or self.encoding != 'raw':
420
  raise ValueError("Encoding must be either onehot, deep or raw")
 
 
421
 
422
  BUILDER_CONFIGS = [
423
  Mimic4DatasetConfig(