Skip to content

Instantly share code, notes, and snippets.

View hammady's full-sized avatar

Hossam Hammady hammady

View GitHub Profile
@hammady
hammady / patch_ROCR_WSS.R
Created February 17, 2014 07:21
After sourcing this patch, you can use "wss" as a new measure in plotting performance curves, same like fp, tp, rec, auc, ... You should have ROCR installed and imported first
# Patch ROCR R package to support plotting of WSS (Work Saved over Sampling)
# Author: Hossam Hammady (hhammady@qf.org.qa)
# Organization: Qatar Computing Research Institute; Data Analytics Group (http://da.qcri.qa)
# Date: 17-Feb-2014
# License: MIT
# Description: After sourcing this patch, you can use "wss" as a new measure in
# .. plotting performance curves, same like fp, tp, rec, auc, ...
# .. You should have ROCR installed and imported first