Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy function #21

Open
wdoyle42 opened this issue Jan 15, 2020 · 4 comments
Open

Accuracy function #21

wdoyle42 opened this issue Jan 15, 2020 · 4 comments
Assignees

Comments

@wdoyle42
Copy link
Collaborator

Function that will take results of model (probabilities, classification) and generate an accuracy measure for the resampled data.

Inputs: model results
Outputs: AUC across all resamples

@btskinner
Copy link
Collaborator

If I understand correctly, @wdoyle42, your intention is to wrap

## get AUC across bootstraps
auc <- results %>%
    filter(!is.na(.pred_Completed)) %>% 
    group_by(id) %>%
    roc_auc(truth = truth,
            prediction = .pred_Completed)

in a more general function along the lines of

get_auc <- function(<results df>, <true value>, <predicted value>)

where <results> are a data frame in the general form returned by grad_class() that includes at least two columns: the true value of the outcome and a predicted value of the outcome.

Is this correct?

@wdoyle42
Copy link
Collaborator Author

@btskinner, yes, that's right. The roc_auc obviously does most of this, the question is whether we want to build a function that also generates graphics, or if we want to subset or reformulate the output from roc_auc in any way.

@mpatricia01
Copy link
Contributor

mpatricia01 commented Jan 25, 2020

Hi @btskinner & @wdoyle42 ! Is it okay with you both if I spend some time learning how to use github some more before taking a stab at this issue? I am a little rusty at the moment and never took the time to learn the ins and outs of github-- mostly the basics.

Would also appreciate any resources you recommend.

@btskinner
Copy link
Collaborator

@mpatricia01, that's totally fine with me. If you haven't seen it, Jenny Bryan has great resource for using git with R: https://happygitwithr.com. Always feel free to send any questions my way, too.

@wdoyle42, I'll take this issue over.

@btskinner btskinner assigned btskinner and unassigned mpatricia01 Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants