Skip to content

Instantly share code, notes, and snippets.

View jaron's full-sized avatar

Jaron Collis jaron

View GitHub Profile
@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()
@zeffii
zeffii / _.md
Last active February 7, 2016 20:04
Another Inlet
@mesquita
mesquita / nice_cm.py
Last active January 9, 2024 19:15
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: