We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57108c commit edeeaccCopy full SHA for edeeacc
ch02/simple_threshold.py
@@ -15,5 +15,8 @@
15
16
plength = features[:, 2]
17
is_setosa = (labels == 'setosa')
18
-print('Maximum of setosa: {0}.'.format(plength[is_setosa].max()))
19
-print('Minimum of others: {0}.'.format(plength[~is_setosa].min()))
+max_setosa = plength[is_setosa].max()
+min_non_setosa = plength[~is_setosa].min()
20
+
21
+print('Maximum of setosa: {0}.'.format(max_setosa))
22
+print('Minimum of others: {0}.'.format(min_non_setosa))
0 commit comments