mstz commited on
Commit
38deb92
1 Parent(s): 7469572

Upload madelon.py

Browse files
Files changed (1) hide show
  1. madelon.py +1 -3
madelon.py CHANGED
@@ -19,7 +19,7 @@ urls_per_split = {
19
  "validation": "https://huggingface.co/datasets/mstz/madelon/raw/main/madelon_valid.csv"
20
  }
21
  features_types_per_config = {
22
- "madelon": {str(i): datasets.Value("float32") for i in range(500)}
23
  }
24
  features_types_per_config["madelon"]["500"] = datasets.ClassLabel(num_classes=2)
25
 
@@ -61,8 +61,6 @@ class Madelon(datasets.GeneratorBasedBuilder):
61
  def _generate_examples(self, filepath: str):
62
  data = pandas.read_csv(filepath)
63
  data = self.preprocess(data, config=self.config.name)
64
- print(data.dtypes)
65
- print(data.infer_objects().dtypes)
66
 
67
  for row_id, row in data.iterrows():
68
  data_row = dict(row)
 
19
  "validation": "https://huggingface.co/datasets/mstz/madelon/raw/main/madelon_valid.csv"
20
  }
21
  features_types_per_config = {
22
+ "madelon": {str(i): datasets.Value("int16") for i in range(500)}
23
  }
24
  features_types_per_config["madelon"]["500"] = datasets.ClassLabel(num_classes=2)
25
 
 
61
  def _generate_examples(self, filepath: str):
62
  data = pandas.read_csv(filepath)
63
  data = self.preprocess(data, config=self.config.name)
 
 
64
 
65
  for row_id, row in data.iterrows():
66
  data_row = dict(row)