Skip to content

Instantly share code, notes, and snippets.

View crixodia's full-sized avatar
👻

Cristian Bastidas crixodia

👻
View GitHub Profile
@mesquita
mesquita / nice_cm.py
Last active July 26, 2024 13:52
Nice Confusion Matrix with percentage cbar
from matplotlib.ticker import PercentFormatter
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.metrics import confusion_matrix
def cm_analysis(y_true, y_pred, filename, labels, classes, ymap=None, figsize=(17,17)):
"""
Generate matrix plot of confusion matrix with pretty annotations.
The plot image is saved to disk.
args:

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment