Skip to content

Instantly share code, notes, and snippets.

View jaron's full-sized avatar

Jaron Collis jaron

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:
@zeffii
zeffii / _.md
Last active February 7, 2016 20:04
Another Inlet
@mhermans
mhermans / neo4R_example.R
Created August 29, 2011 09:50
Neo4j-Cypher-R
# Requirements
#sudo apt-get install libcurl4-gnutls-dev # for RCurl on linux
#install.packages('RCurl')
#install.packages('RJSONIO')
library('RCurl')
library('RJSONIO')
query <- function(querystring) {
h = basicTextGatherer()