View source: R/evaluator-lib-utils.R
| rescale_curve | R Documentation | 
A helper function to map a ROC/PR curve with unique coordinates given in a data.frame onto a new set of x-axis values (i.e., FPR for an ROC curve and recall for a PR curve).
rescale_curve(curve_data, x_grid, xvar, yvar)
| curve_data | A  | 
| x_grid | Vector of x-coordinates at which to evaluate ROC/PR curve | 
| xvar | Name of column in  | 
| yvar | Name of column in  | 
A data.frame with the coordinates of the ROC/PR curve using
the new x-axis scale. This data.frame has two columns with names
given by those specified in xvar and yvar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.