Skip to content

Commit 7a85e8d

Browse files
period in formula py bug hunt
1 parent 19d0f48 commit 7a85e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/classification2.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ it classified 3 malignant observations as benign, and 4 benign observations as
139139
malignant. The accuracy of this classifier is roughly
140140
89%, given by the formula
141141

142-
$$\mathrm{accuracy} = \frac{\mathrm{number \; of \; correct \; predictions}}{\mathrm{total \; number \; of \; predictions}} = \frac{1+57}{1+57+4+3} = 0.892$$
142+
$$\mathrm{accuracy} = \frac{\mathrm{number \; of \; correct \; predictions}}{\mathrm{total \; number \; of \; predictions}} = \frac{1+57}{1+57+4+3} = 0.892.$$
143143

144144
But we can also see that the classifier only identified 1 out of 4 total malignant
145145
tumors; in other words, it misclassified 75% of the malignant cases present in the

0 commit comments

Comments
 (0)