Skip to content

Instantly share code, notes, and snippets.

@jakobludewig
jakobludewig / gist:b79678f04a6c0a0b023b8685608d1d47
Created October 17, 2018 15:58
Comparing AUC of classifiers with and without trivial points
rm(list = ls())
library(tidyverse)
model_roc_points <-
tribble(~model,~threshold,~FPR,~TPR,
"model_1",-Inf,0,0,
"model_1",0.25,0.25,0.375,
"model_1",0.5,0.5,0.75,
"model_1",Inf,1,1,
"model_2",-Inf,0,0,
@jakobludewig
jakobludewig / index.html
Created January 19, 2016 09:29
R + d3.js Parallel Coordinates of partykit
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<script src="http://d3js.org/d3.v3.js"></script>
<link href="http://syntagmatic.github.com/parallel-coordinates/d3.parcoords.css" rel="stylesheet" />
<script src="http://syntagmatic.github.com/parallel-coordinates/d3.parcoords.js"></script>
</head>
<body style="background-color:white;">