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

Iss71 #72

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Iss71 #72

wants to merge 3 commits into from

Conversation

MortonC78483
Copy link

Adding grouping functionality to discriminant-based metrics

@MortonC78483 MortonC78483 linked an issue Mar 11, 2024 that may be closed by this pull request
Copy link
Contributor

@awunderground awunderground left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big-Picture Requests

  • Write tests for each added change
  • Run README.qmd to update README.md

Big-Picture Thoughts

  • Grouping with the other functions uses unquoted variable names. Your changes use quoted variable names. How tough is this to change?
  • The functions don't include the number of observations associated with each subgroup. This would be useful because small groups could be very noisy.

README.qmd Show resolved Hide resolved
README.qmd Show resolved Hide resolved
R/add_discriminator_auc.R Show resolved Hide resolved
R/add_pmse.R Show resolved Hide resolved
R/add_pmse_ratio.R Show resolved Hide resolved
R/add_pmse_ratio.R Show resolved Hide resolved
R/add_pmse_ratio.R Show resolved Hide resolved
R/add_pmse_ratio.R Show resolved Hide resolved
R/add_specks.R Show resolved Hide resolved
.source = factor(c("training", "testing"), levels = c("training", "testing")),
.specks = c(specks_training, specks_testing)
)
if (length(group)==0){ # original case
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a way to implement this that doesn't use if-else. Instead, have it create two rows without groups and more rows with groups.

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

Successfully merging this pull request may close these issues.

Add grouping for discriminant-based metrics
2 participants