From fc784b6672eb8d21e1cb52dda1fd32c1bc4ae9a2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 8 Mar 2018 23:16:44 +0100 Subject: gnu: Add r-prroc. * gnu/packages/cran.scm (r-prroc): New variable. --- gnu/packages/cran.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index e7e49fd519..4b63c0f644 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -3084,3 +3084,27 @@ works with vectors, matrices, and higher-dimensional arrays. It also provides the functions @code{adrop}, @code{asub}, and @code{afill} for manipulating, extracting and replacing data in arrays.") (license license:lgpl2.0+))) + +(define-public r-prroc + (package + (name "r-prroc") + (version "1.3") + (source + (origin + (method url-fetch) + (uri (cran-uri "PRROC" version)) + (sha256 + (base32 + "03hvh92lq4i4w4mla9bvwrwb4626f4hvlxgdn57hamp70960vjyc")))) + (properties `((upstream-name . "PRROC"))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/PRROC/") + (synopsis "Precision-Recall and ROC curves for weighted and unweighted data") + (description + "This package computes the areas under the @dfn{precision-recall} (PR) +and ROC curve for weighted (e.g. soft-labeled) and unweighted data. In +contrast to other implementations, the interpolation between points of the PR +curve is done by a non-linear piecewise function. In addition to the areas +under the curves, the curves themselves can also be computed and plotted by a +specific S3-method.") + (license license:gpl3))) -- cgit v1.2.3