You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print('Number of samples that meet this criterion:',
617
-
X_selected.shape[0])
616
+
print('Number of features that meet this threshold criterion:',
617
+
X_selected.shape[1])
618
618
619
619
620
620
# Now, let's print the 3 features that met the threshold criterion for feature selection that we set earlier (note that this code snippet does not appear in the actual book but was added to this notebook later for illustrative purposes):
Copy file name to clipboardExpand all lines: docs/errata/README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ To turn those annoyances into something positive, I will donate 5ドル to [UNICEF US
7
7
Also below, I added a small leaderboard to keep track of the errata submissions and errors you found. Please let me know if you don't want to be explicitely mentioned in that list!
8
8
9
9
10
-
- Amount for the next donation: 65$
10
+
- Amount for the next donation: 70$
11
11
- Amount donated: 0$
12
12
13
13
@@ -18,11 +18,11 @@ Contributor list:
18
18
19
19
7. gabramson (15ドル)
20
20
1. Gogy (10ドル)
21
+
6. Oliver Tomic (10ドル)
21
22
2. Christian Geier (5ドル)
22
23
3. Pieter Algra / Carlos Zada (5ドル)
23
24
4.@gabramson (5ドル)
24
25
5. Elias Strehle (5ドル)
25
-
6. Oliver Tomic (5ドル)
26
26
7. Krishna Mohan (5ドル)
27
27
8. Jesse Blocher (5ドル)
28
28
@@ -81,6 +81,25 @@ instead of
81
81
82
82
It seems that I did it correctly in the notebook. Also, the list of feature importances and the plot seem to be correct in the book. However, somehow the [indices] array index went missing in the print version.
83
83
84
+
pg. 138
85
+
86
+
Instead of writing
87
+
88
+
```
89
+
>>> print('Number of samples that meet this criterion:',
90
+
... X_selected.shape[0])
91
+
Number of samples that meet this criterion: 124
92
+
```
93
+
94
+
it would make more sense to write
95
+
96
+
```
97
+
>>> print('Number of features that meet this threshold criterion:',
98
+
... X_selected.shape[1])
99
+
Number of features that meet this threshold criterion: 5
0 commit comments