Description Usage Arguments Value
Calculate a bootstrapped score for an initial submission or subsequent submission.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
predictions |
The relative path to the current prediction csv, or a data frame. |
predictionColname |
The name of the column in the prediction csv that contains numeric prediction values. If also using a previous prediction file, must be the same name. |
goldStandard |
The relative path to the gold standard/test data csv, or a data frame. |
goldStandardColname |
The name of the column in the gold standard csv that contains numeric prediction values. |
prevPredictions |
If a previous prediction file for this team/participant already exists, pass in the path or data frame here. Prediction colname must match. |
scoreFun |
A scoring function. Default is Spearman correlation. Any function can be passed as long as it can calculate a score from two vectors (gold standard first, and prediction values second). |
bootstrapN |
Number of total bootstraps to perform (default 10000). |
reportBootstrapN |
Number of bootstraps to base returned score off of (default 10). The greater this value, the more accurate of a result is returned (and possibly the more the test data can be overfit). |
bayesThreshold |
The threshold for reporting a score. If the bayes factor (K) of the new prediction relative to the previous submission is less than this value, no score is returned. Default 3. |
seed |
Set a seed for bootstrap sampling. Default 98121. |
largerIsBetter |
Set this to FALSE if a smaller scoring metric indicates better performance (e.g. root mean squared error). Default TRUE. |
verbose |
Report step. Default FALSE. |
doParallel |
Bootstrap in parallel. Only works on UNIX based OS. Default TRUE. |
A named list with a bootstrapped score and a boolean stating whether the bayesThreshold was met. If verbose == T, also returns the calculated Bayes factor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.