Skip to content

Instantly share code, notes, and snippets.

View dhimmel's full-sized avatar
🎯
Focusing

Daniel Himmelstein dhimmel

🎯
Focusing
View GitHub Profile
@dhimmel
dhimmel / elevcan-voe.ipynb
Created June 16, 2015 00:03
Vibration of effects analysis for lung cancer versus elevation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhimmel
dhimmel / sung-views.ipynb
Created June 6, 2015 06:15
Retrieve article level metrics for a PLOS article and visualize views over time.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhimmel
dhimmel / vtm.R
Last active August 29, 2015 14:21
Variable threshold metrics in R for evaluating classifier performance
library(ROCR)
library(caTools)
VariableThresholdMetrics <- function(score, status) {
#' Evaluate the performance of predictions for a binary outcome.
#'
#' @param score A vector of predictions for which performance should be evalauted.
#' @param status A vector of the actual outcome: \code{0} (for negatives) and \code{1} (for positives).
#' @return A list.
@dhimmel
dhimmel / onename.txt
Created September 3, 2014 20:27
onename verification
Verifying that +dhimmel is my Bitcoin username. You can send me #bitcoin here: https://onename.io/dhimmel