Datasets:
Update mammography.py
Browse files- mammography.py +0 -3
mammography.py
CHANGED
@@ -114,9 +114,6 @@ class Mammography(datasets.GeneratorBasedBuilder):
|
|
114 |
data = data[data.density != "?"]
|
115 |
data = data.infer_objects()
|
116 |
for feature in _ENCODING_DICS:
|
117 |
-
print(feature)
|
118 |
-
print("?" in data[feature])
|
119 |
-
print(data[feature].unique())
|
120 |
encoding_function = partial(self.encode, feature)
|
121 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
122 |
|
|
|
114 |
data = data[data.density != "?"]
|
115 |
data = data.infer_objects()
|
116 |
for feature in _ENCODING_DICS:
|
|
|
|
|
|
|
117 |
encoding_function = partial(self.encode, feature)
|
118 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
119 |
|