How To Install r-cran-rocr on Kali Linux

In this tutorial we learn how to install r-cran-rocr on Kali Linux. r-cran-rocr is GNU R package to prepare and display ROC curves

Introduction

In this tutorial we learn how to install r-cran-rocr on Kali Linux.

What is r-cran-rocr

r-cran-rocr is:

ROC graphs, sensitivity/specificity curves, lift charts, and precision/recall plots are popular examples of trade-off visualizations for specific pairs of performance measures. ROCR is a flexible tool for creating cutoff-parametrized 2D performance curves by freely combining two from over 25 performance measures (new performance measures can be added using a standard interface). Curves from different cross-validation or bootstrapping runs can be averaged by different methods, and standard deviations, standard errors or box plots can be used to visualize the variability across the runs. The parametrization can be visualized by printing cutoff values at the corresponding curve positions, or by coloring the curve according to cutoff. All components of a performance plot can be quickly adjusted using a flexible parameter dispatching mechanism. Despite its flexibility, ROCR is easy to use, with only three commands and reasonable default values for all optional parameters.

ROCR features: ROC curves, precision/recall plots, lift charts, cost curves, custom curves by freely selecting one performance measure for the x axis and one for the y axis, handling of data from cross-validation or bootstrapping, curve averaging (vertically, horizontally, or by threshold), standard error bars, box plots, curves that are color-coded by cutoff, printing threshold values on the curve, tight integration with Rs plotting facilities (making it easy to adjust plots or to combine multiple plots), fully customizable, easy to use (only 3 commands).

Performance measures that ROCR knows: Accuracy, error rate, true positive rate, false positive rate, true negative rate, false negative rate, sensitivity, specificity, recall, positive predictive value, negative predictive value, precision, fallout, miss, phi correlation coefficient, Matthews correlation coefficient, mutual information, chi square statistic, odds ratio, lift value, precision/recall F measure, ROC convex hull, area under the ROC curve, precision/recall break-even point, calibration error, mean cross-entropy, root mean squared error, SAR measure, expected cost, explicit cost.

There are three methods to install r-cran-rocr on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install r-cran-rocr Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install r-cran-rocr using apt-get by running the following command:

sudo apt-get -y install r-cran-rocr

Install r-cran-rocr Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-rocr using apt by running the following command:

sudo apt -y install r-cran-rocr

Install r-cran-rocr Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install r-cran-rocr using aptitude by running the following command:

sudo aptitude -y install r-cran-rocr

How To Uninstall r-cran-rocr on Kali Linux

To uninstall only the r-cran-rocr package we can use the following command:

sudo apt-get remove r-cran-rocr

Uninstall r-cran-rocr And Its Dependencies

To uninstall r-cran-rocr and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove r-cran-rocr

Remove r-cran-rocr Configurations and Data

To remove r-cran-rocr configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge r-cran-rocr

Remove r-cran-rocr configuration, data, and all of its dependencies

We can use the following command to remove r-cran-rocr configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-rocr

Dependencies

r-cran-rocr have the following dependencies:

References

Summary

In this tutorial we learn how to install r-cran-rocr package on Kali Linux using different package management tools: apt, apt-get and aptitude.