acc_sim {scR} | R Documentation |
Utility function to generate accuracy metrics, for use with estimate_accuracy()
Description
Utility function to generate accuracy metrics, for use with estimate_accuracy()
Usage
acc_sim(n, method = "Uniform", p = NULL, ...)
Arguments
n |
An integer giving the desired sample size for which the target function is to be calculated. |
method |
An optional string stating the distribution from which data is to be generated. Default is i.i.d. uniform sampling. Currently also supports "Class Imbalance". Can also take a function outputting a vector of probabilities if the user wishes to specify a custom distribution. |
p |
If method is 'Class Imbalance', gives the degree of weight placed on the positive class. |
... |
Additional model parameters to be specified by the user. |
Value
A data frame giving performance metrics for the specified sample size.
[Package scR version 0.2.0 Index]