Datasets:
Upload compas.py
Browse files
compas.py
CHANGED
@@ -244,11 +244,10 @@ class Compas(datasets.GeneratorBasedBuilder):
|
|
244 |
raise ValueError(f"Unknown config: {self.config.name}")
|
245 |
|
246 |
if self.config.name == "encoding":
|
247 |
-
data = self.
|
248 |
else:
|
249 |
data = pandas.read_csv(filepath)
|
250 |
data = self.preprocess(data, config=self.config.name)
|
251 |
-
|
252 |
for row_id, row in data.iterrows():
|
253 |
data_row = dict(row)
|
254 |
|
|
|
244 |
raise ValueError(f"Unknown config: {self.config.name}")
|
245 |
|
246 |
if self.config.name == "encoding":
|
247 |
+
data = self.encoding_dics()
|
248 |
else:
|
249 |
data = pandas.read_csv(filepath)
|
250 |
data = self.preprocess(data, config=self.config.name)
|
|
|
251 |
for row_id, row in data.iterrows():
|
252 |
data_row = dict(row)
|
253 |
|