I would need to create a confusion matrix which shows precision, recall, ... by class (0/1). After defined a function to create the naive bayes model:
from s