tidymodels / tidymodels/yardstick

Weighted Youden index

Open
#628 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.