Datasets:
Upload splice.py
Browse files
splice.py
CHANGED
|
@@ -349,7 +349,7 @@ class Splice(datasets.GeneratorBasedBuilder):
|
|
| 349 |
encoding_function = partial(self.encode, feature)
|
| 350 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
| 351 |
|
| 352 |
-
return data[list(features_types_per_config[config].keys())]
|
| 353 |
|
| 354 |
def encode(self, feature, value):
|
| 355 |
if feature in _ENCODING_DICS:
|
|
|
|
| 349 |
encoding_function = partial(self.encode, feature)
|
| 350 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
| 351 |
|
| 352 |
+
return data[list(features_types_per_config[self.config.name].keys())]
|
| 353 |
|
| 354 |
def encode(self, feature, value):
|
| 355 |
if feature in _ENCODING_DICS:
|