In addition to deeplearning540/lesson03#1, sklearn also uses y_{true,pred} = [False, True] such that TN = C[0,0] and so forth, as opposed to [True,False] in wikipedia.
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.confusion_matrix.html