Datasets:
Update annealing.py
Browse files- annealing.py +2 -2
annealing.py
CHANGED
@@ -77,7 +77,6 @@ features_types_per_config = {
|
|
77 |
"bt": datasets.Value("bool"),
|
78 |
"bw_time": datasets.Value("string"),
|
79 |
"bl": datasets.Value("bool"),
|
80 |
-
"m": datasets.Value("bool"),
|
81 |
"chrom": datasets.Value("bool"),
|
82 |
"phos": datasets.Value("bool"),
|
83 |
"cbond": datasets.Value("bool"),
|
@@ -148,6 +147,7 @@ class Anneal(datasets.GeneratorBasedBuilder):
|
|
148 |
|
149 |
data.drop("product_type", axis="columns", inplace=True)
|
150 |
data.drop("non_ageing", axis="columns", inplace=True)
|
|
|
151 |
|
152 |
data.loc[:, "formability"] = data.formability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
153 |
data.loc[:, "enamelability"] = data.enamelability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
@@ -156,7 +156,7 @@ class Anneal(datasets.GeneratorBasedBuilder):
|
|
156 |
data.loc[:, "bf"] = data.bf.apply(lambda x: True if x == "Y" else False)
|
157 |
data.loc[:, "bt"] = data.bt.apply(lambda x: True if x == "Y" else False)
|
158 |
data.loc[:, "bl"] = data.bl.apply(lambda x: True if x == "Y" else False)
|
159 |
-
data.loc[:, "m"] = data.m.apply(lambda x: True if x == "Y" else False)
|
160 |
data.loc[:, "chrom"] = data.chrom.apply(lambda x: True if x == "C" else False)
|
161 |
data.loc[:, "phos"] = data.phos.apply(lambda x: True if x == "P" else False)
|
162 |
data.loc[:, "cbond"] = data.cbond.apply(lambda x: True if x == "Y" else False)
|
|
|
77 |
"bt": datasets.Value("bool"),
|
78 |
"bw_time": datasets.Value("string"),
|
79 |
"bl": datasets.Value("bool"),
|
|
|
80 |
"chrom": datasets.Value("bool"),
|
81 |
"phos": datasets.Value("bool"),
|
82 |
"cbond": datasets.Value("bool"),
|
|
|
147 |
|
148 |
data.drop("product_type", axis="columns", inplace=True)
|
149 |
data.drop("non_ageing", axis="columns", inplace=True)
|
150 |
+
data.drop("m", axis="columns", inplace=True)
|
151 |
|
152 |
data.loc[:, "formability"] = data.formability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
153 |
data.loc[:, "enamelability"] = data.enamelability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
|
|
156 |
data.loc[:, "bf"] = data.bf.apply(lambda x: True if x == "Y" else False)
|
157 |
data.loc[:, "bt"] = data.bt.apply(lambda x: True if x == "Y" else False)
|
158 |
data.loc[:, "bl"] = data.bl.apply(lambda x: True if x == "Y" else False)
|
159 |
+
# data.loc[:, "m"] = data.m.apply(lambda x: True if x == "Y" else False)
|
160 |
data.loc[:, "chrom"] = data.chrom.apply(lambda x: True if x == "C" else False)
|
161 |
data.loc[:, "phos"] = data.phos.apply(lambda x: True if x == "P" else False)
|
162 |
data.loc[:, "cbond"] = data.cbond.apply(lambda x: True if x == "Y" else False)
|