acc_sim {scR} | R Documentation |
estimate_accuracy()
Utility function to generate accuracy metrics, for use with estimate_accuracy()
acc_sim(n, method = "Uniform", p = NULL, ...)
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. |
A data frame giving performance metrics for the specified sample size.