Datasets:
Witold Wydmański
commited on
Commit
•
f1fc63a
1
Parent(s):
d232d90
feat: separate values and target
Browse files- load_script.py +6 -1
load_script.py
CHANGED
@@ -70,4 +70,9 @@ class ColorectalCarcinomaMicrobiomeFengQConfig(datasets.GeneratorBasedBuilder):
|
|
70 |
def _generate_examples(self, filepath, split=None):
|
71 |
df = pd.read_csv(filepath)
|
72 |
for i, row in df.iterrows():
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
70 |
def _generate_examples(self, filepath, split=None):
|
71 |
df = pd.read_csv(filepath)
|
72 |
for i, row in df.iterrows():
|
73 |
+
target = row["target"]
|
74 |
+
values = row.drop("target").values
|
75 |
+
yield i, {
|
76 |
+
"values": values,
|
77 |
+
"target": target,
|
78 |
+
}
|