[ Launch Inlet ]Gist #4469595 [ Launch Inlet ]Gist #4466941 [ Launch Inlet ]Gist #4461697 [ Launch Inlet ]Gist #4461508 [ Launch Inlet ]Gist #4458395 [ Launch Inlet ]Gist #4452401 [ Launch Inlet ]Gist #4452384 Gist #4452367 Gist #445
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
[ Launch Inlet ]Gist #4461508 [ Launch Inlet ]Gist #4458395 [ Launch Inlet ]Gist #4452401 [ Launch Inlet ]Gist #4452384 Gist #4452367 Gist #4450163 An inlet to tributary
[ Launch Inlet ]Gist #4452401 [ Launch Inlet ]Gist #4452384 Gist #4452367 Gist #4450163 An inlet to tributary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |