tidymodels / tidymodels/yardstick
Weighted Youden index
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 402
- Forks
- 63
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
Youden index is often used in classification problems when one wants to jointly maximize sensitivity and specificity. By definition, it gives equal weight to both but, in some contexts, it might be relevant to give more weight to one or the other.
We created a package called {mupet} that implements weighted Youden index.
But I think it could be nice to have an option in yardstick::j_index() to let the user choose the weights, with a default that makes it the usual balanced formula to keep existing code unbroken. Would you consider this feature request? If so, would you like to receive a corresponding PR?
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the yardstick::j_index() entry point and compare its current balanced formula with the weighted Youden index implemented by the linked mupet package. Define the weight behavior while preserving the existing default, then verify the metric and its documentation with the project’s relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100