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

make predict.tft() compatible with yardstick::metricset() usage #5

Open
cregouby opened this issue May 26, 2021 · 0 comments
Open

make predict.tft() compatible with yardstick::metricset() usage #5

cregouby opened this issue May 26, 2021 · 0 comments

Comments

@cregouby
Copy link
Collaborator

... in order to restore the previous part of README

metrics <- metric_set(accuracy, precision, recall)
cbind(vic_elec_test, predict(fit, vic_elec_test)) %>% 
  metrics(Demand, estimate = .pred_class)
  
cbind(vic_elec_test, predict(fit, vic_elec_test, type = "prob")) %>% 
  roc_auc(Demand, .pred_No)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant