Skip to content

Commit 637729e

Browse files
committed
modfied no header for labels csv output
1 parent e776886 commit 637729e

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

ML - Applied Machine Learning - Algorithms/01.Review of Foundation/02.Foundations - Split data into train, validation, and test set.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
},
172172
{
173173
"cell_type": "code",
174-
"execution_count": 6,
174+
"execution_count": 5,
175175
"metadata": {},
176176
"outputs": [
177177
{
@@ -198,17 +198,17 @@
198198
},
199199
{
200200
"cell_type": "code",
201-
"execution_count": 7,
201+
"execution_count": 6,
202202
"metadata": {},
203203
"outputs": [],
204204
"source": [
205205
"X_train.to_csv('../Data/train_features.csv', index=False)\n",
206206
"X_val.to_csv('../Data/val_features.csv', index=False)\n",
207207
"X_test.to_csv('../Data/test_features.csv', index=False)\n",
208208
"\n",
209-
"y_train.to_csv('../Data/train_labels.csv', index=False)\n",
210-
"y_val.to_csv('../Data/val_labels.csv', index=False)\n",
211-
"y_test.to_csv('../Data/test_labels.csv', index=False)"
209+
"y_train.to_csv('../Data/train_labels.csv', index=False, header=False)\n",
210+
"y_val.to_csv('../Data/val_labels.csv', index=False, header=False)\n",
211+
"y_test.to_csv('../Data/test_labels.csv', index=False, header=False)"
212212
]
213213
},
214214
{

ML - Applied Machine Learning - Algorithms/Data/test_labels.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Survived
21
0
32
0
43
0

ML - Applied Machine Learning - Algorithms/Data/train_labels.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Survived
21
1
32
0
43
1

ML - Applied Machine Learning - Algorithms/Data/val_labels.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Survived
21
1
32
0
43
0

0 commit comments

Comments
 (0)