import numpy as np
from sklearn.metrics import confusion_matrix, accuracy_score, precision_score, recall_score, f1_score
# Example predictions and actual values
y_true = np.array(['spam', 'not_spam', 'spam', 'not_spam', 'spam', 'not_spam', 'spam', 'spam'])
y_pred = np.array(['spam', 'not_spam', 'not_spam', 'not_spam', 'spam', 'spam', 'spam', 'spam'])
# Create confusion matrix
conf_matrix = confusion_matrix(y_true, y_pred, labels=['spam', 'not_spam'])
print("Confusion Matrix:")
print(conf_matrix)
Data Nomor Angkanet Terupdate
says:
Howdy! This blog post couldn’t be written any better!
Reading through this post reminds me of my previous roommate!
He always kept talking about this. I am going to forward
this article to him. Fairly certain he will have a great read.
Many thanks for sharing!
Pengeluaran Semua Pasaran Togel Dunia Hari Ini
says:
Unquestionably imagine that which you stated. Your favourite justification seemed to be at the
net the simplest factor to take into accout of.
I say to you, I certainly get annoyed whilst other people think about worries that they just don’t know about.
You controlled to hit the nail upon the top and also outlined out the entire thing with
no need side-effects , people can take a signal. Will probably be back to get more.
Thanks
Live Result Hongkong
says:
This is a topic which is close to my heart…
Best wishes! Exactly where are your contact details though?
Live Draw HK 6D
says:
I’d like to thank you for the efforts you have put in penning this
website. I really hope to view the same high-grade content
from you later on as well. In truth, your creative writing abilities has encouraged me to get my own, personal site now 😉
Angka Main 4D
says:
Remarkable things here. I am very happy to look your post.
Thanks a lot and I am having a look ahead to contact you.
Will you kindly drop me a mail?
온라인카지노
says:
Hi to all, it’s really a fastidious for me to go to see this web page, it consists of valuable Information.