Skip to content

Iss71 - #72

Open
MortonC78483 wants to merge 3 commits into
mainfrom
iss71
Open

Iss71 #72
MortonC78483 wants to merge 3 commits into
mainfrom
iss71

Conversation

@MortonC78483

Copy link
Copy Markdown

Adding grouping functionality to discriminant-based metrics

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

@awunderground awunderground left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread README.qmd
Comment thread README.qmd
Comment thread R/add_discriminator_auc.R
Comment thread R/add_pmse.R
Comment thread R/add_pmse_ratio.R
Comment thread R/add_pmse_ratio.R
Comment thread R/add_pmse_ratio.R
Comment thread R/add_pmse_ratio.R
Comment thread R/add_specks.R
Comment thread R/add_specks.R
.source = factor(c("training", "testing"), levels = c("training", "testing")),
.specks = c(specks_training, specks_testing)
)
if (length(group)==0){ # original case

Copy link
Copy Markdown
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