Skip to content

Commit c2d1266

Browse files
committed
Set font color in confusion matrix
1 parent c742279 commit c2d1266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

03 - Classification.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"\n",
201201
"Accuracy seems like a sensible metric to evaluate (and to a certain extent it is), but you need to be careful about drawing too many conclusions from the accuracy of a classifier. Remember that it's simply a measure of how many cases were predicted correctly. Suppose only 3% of the population is diabetic. You could create a classifier that always just predicts 0, and it would be 97% accurate - but not terribly helpful in identifying patients with diabetes!\n",
202202
"\n",
203-
"Fortunately, there are some other metrcs that reveal a little more about how our model is performing."
203+
"Fortunately, there are some other metrics that reveal a little more about how our model is performing."
204204
]
205205
},
206206
{
@@ -236,10 +236,10 @@
236236
"\n",
237237
"<table style=\"border: 1px solid black;\">\n",
238238
" <tr style=\"border: 1px solid black;\">\n",
239-
" <td style=\"border: 1px solid black;\" bgcolor=\"lightgray\">TN</td><td style=\"border: 1px solid black;\" bgcolor=\"white\">FP</td>\n",
239+
" <td style=\"border: 1px solid black;color: black;\" bgcolor=\"lightgray\">TN</td><td style=\"border: 1px solid black;color: black;\" bgcolor=\"white\">FP</td>\n",
240240
" </tr>\n",
241241
" <tr style=\"border: 1px solid black;\">\n",
242-
" <td style=\"border: 1px solid black;\" bgcolor=\"white\">FN</td><td style=\"border: 1px solid black;\" bgcolor=\"lightgray\">TP</td>\n",
242+
" <td style=\"border: 1px solid black;color: black;\" bgcolor=\"white\">FN</td><td style=\"border: 1px solid black;color: black;\" bgcolor=\"lightgray\">TP</td>\n",
243243
" </tr>\n",
244244
"</table>\n",
245245
"\n",

0 commit comments

Comments
 (0)