Skip to content

Commit 1b59e2a

Browse files
authored
Fix printing features in jupyter (#55)
1 parent 223d3cc commit 1b59e2a

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

worked-solutions/01_penguin_classification_solutions.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -153,26 +153,26 @@
153153
"name": "stdout",
154154
"output_type": "stream",
155155
"text": [
156-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
157-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
158-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
159-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
160-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
161-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
162-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
163-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
164-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
165-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
166-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
167-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
168-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
169-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
170-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
171-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
172-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
173-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
174-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n",
175-
"['bill_length_mm', 'bill_depth_mm', 'body_mass_g', 'flipper_length_mm', 'sex'] ('Gentoo',)\n"
156+
"(42.9, 13.1, 5000.0, 215.0, 0.0) ('Gentoo',)\n",
157+
"(46.1, 13.2, 4500.0, 211.0, 0.0) ('Gentoo',)\n",
158+
"(44.9, 13.3, 5100.0, 213.0, 0.0) ('Gentoo',)\n",
159+
"(43.3, 13.4, 4400.0, 209.0, 0.0) ('Gentoo',)\n",
160+
"(42.0, 13.5, 4150.0, 210.0, 0.0) ('Gentoo',)\n",
161+
"(46.5, 13.5, 4550.0, 210.0, 0.0) ('Gentoo',)\n",
162+
"(44.0, 13.6, 4350.0, 208.0, 0.0) ('Gentoo',)\n",
163+
"(40.9, 13.7, 4650.0, 214.0, 0.0) ('Gentoo',)\n",
164+
"(42.6, 13.7, 4950.0, 213.0, 0.0) ('Gentoo',)\n",
165+
"(42.7, 13.7, 3950.0, 208.0, 0.0) ('Gentoo',)\n",
166+
"(45.3, 13.7, 4300.0, 210.0, 0.0) ('Gentoo',)\n",
167+
"(47.2, 13.7, 4925.0, 214.0, 0.0) ('Gentoo',)\n",
168+
"(45.2, 13.8, 4750.0, 215.0, 0.0) ('Gentoo',)\n",
169+
"(43.6, 13.9, 4900.0, 217.0, 0.0) ('Gentoo',)\n",
170+
"(43.8, 13.9, 4300.0, 208.0, 0.0) ('Gentoo',)\n",
171+
"(45.5, 13.9, 4200.0, 210.0, 0.0) ('Gentoo',)\n",
172+
"(45.7, 13.9, 4400.0, 214.0, 0.0) ('Gentoo',)\n",
173+
"(43.3, 14.0, 4575.0, 208.0, 0.0) ('Gentoo',)\n",
174+
"(47.5, 14.0, 4875.0, 212.0, 0.0) ('Gentoo',)\n",
175+
"(46.2, 14.1, 4375.0, 217.0, 0.0) ('Gentoo',)\n"
176176
]
177177
}
178178
],
@@ -196,7 +196,7 @@
196196
")\n",
197197
"\n",
198198
"for _, (input_feats, target) in zip(range(20), data_set):\n",
199-
" print(features, target)"
199+
" print(input_feats, target)"
200200
]
201201
},
202202
{

worked-solutions/02_penguin_regression_solutions.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,26 @@
135135
"name": "stdout",
136136
"output_type": "stream",
137137
"text": [
138-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (5000.0,)\n",
139-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4500.0,)\n",
140-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (5100.0,)\n",
141-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4400.0,)\n",
142-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4150.0,)\n",
143-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4550.0,)\n",
144-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4350.0,)\n",
145-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4650.0,)\n",
146-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4950.0,)\n",
147-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (3950.0,)\n",
148-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4300.0,)\n",
149-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4925.0,)\n",
150-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4750.0,)\n",
151-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4900.0,)\n",
152-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4300.0,)\n",
153-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4200.0,)\n",
154-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4400.0,)\n",
155-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4575.0,)\n",
156-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4875.0,)\n",
157-
"['sex', 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm'] (4375.0,)\n"
138+
"(0.0, 42.9, 13.1, 215.0) (5000.0,)\n",
139+
"(0.0, 46.1, 13.2, 211.0) (4500.0,)\n",
140+
"(0.0, 44.9, 13.3, 213.0) (5100.0,)\n",
141+
"(0.0, 43.3, 13.4, 209.0) (4400.0,)\n",
142+
"(0.0, 42.0, 13.5, 210.0) (4150.0,)\n",
143+
"(0.0, 46.5, 13.5, 210.0) (4550.0,)\n",
144+
"(0.0, 44.0, 13.6, 208.0) (4350.0,)\n",
145+
"(0.0, 40.9, 13.7, 214.0) (4650.0,)\n",
146+
"(0.0, 42.6, 13.7, 213.0) (4950.0,)\n",
147+
"(0.0, 42.7, 13.7, 208.0) (3950.0,)\n",
148+
"(0.0, 45.3, 13.7, 210.0) (4300.0,)\n",
149+
"(0.0, 47.2, 13.7, 214.0) (4925.0,)\n",
150+
"(0.0, 45.2, 13.8, 215.0) (4750.0,)\n",
151+
"(0.0, 43.6, 13.9, 217.0) (4900.0,)\n",
152+
"(0.0, 43.8, 13.9, 208.0) (4300.0,)\n",
153+
"(0.0, 45.5, 13.9, 210.0) (4200.0,)\n",
154+
"(0.0, 45.7, 13.9, 214.0) (4400.0,)\n",
155+
"(0.0, 43.3, 14.0, 208.0) (4575.0,)\n",
156+
"(0.0, 47.5, 14.0, 212.0) (4875.0,)\n",
157+
"(0.0, 46.2, 14.1, 217.0) (4375.0,)\n"
158158
]
159159
}
160160
],
@@ -175,7 +175,7 @@
175175
")\n",
176176
"\n",
177177
"for _, (input_feats, target) in zip(range(20), data_set):\n",
178-
" print(features, target)"
178+
" print(input_feats, target)"
179179
]
180180
},
181181
{

0 commit comments

Comments
 (0)