Binarised Regression Curves - Software
This is R code for calculating and drawing Binarised Regression Curves.
This software is associated to the following paper:
The program calculates and draws:
- Plots the UCE space
- Plots the OCE space
- Their areas
- Gets the points for the retraining case for a vector of cutoffs
- It also includes code to deal with a complete work-to-deployment process, using a real dataset.
Available Code: script-web.zip
- R code: V.1.9 - May 2014.
- Examples
- Case Study
Implemented functions:
- Reg2Class_Loss(...): Calculates the loss (error) for a regression model as the corresponding classifier error at a given cutoff
- Reg2Class_UCE_space(...): Plots the underlying UCE (formerly known as AE) space (use this just before plotting any model)#
- Reg2Class_UCE_cutoffs(...): Returns a sequence of equally-spaced cutoffs between maxy and miny.
- Reg2Class_UCE_curve(...): Plots an UCE curve given the cutoffs and their costs
- Reg2Class_UCE_area(...): Calculates the area of a curve in the UCE space
- Reg2Class_OCE_space(...): Plots the underlying OCE (formerly known as Normalised AE) space (use this just before plotting any model)
- Reg2Class_OCE_cutoffs(...): Returns the cutoffs equal to the actual values
- Reg2Class_OCE_curve(...): Plots an OCE curve given the cutoffs and their costs
- Reg2Class_OCE_area(...): Calculates the area of a curve in the OCE space
- Reg2Class_Retraining_Points(...): Gets the points for the retraining case for a vector of cutoffs.
- Reg2Class_Reframing_Points(...): Gets the points for the reframing case for a vector of cutoffs.
- Reg2Class_UCE_all_in_one(...): Creates cutoffs (uniform and observed), calculates uce_points and oce_points using reframing, plots the UCE curve and calculates area
- Reg2Class_AE_space(...): Plots the AE space
- Reg2Class_AE_diagram(...): Plots an AE diagram
- Reg2Class_IR_space(...): Plots the IR space
- Reg2Class_IR_diagram(...): Plots an IR diagram
Code for the experiments in the paper (it employs and old version of this software):
© 2015 José Hernández Orallo Cèsar Ferri.