Refine handling of underperforming_group
issue type
#1099
Merged
+128
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1065
🎯 Purpose: Refine handling of
underperforming_group
issue type for classification tasks to ensure it is correctly included only when appropriate inputs are provided.UnderperformingGroupIssueManager
always requirespred_probs
. Whenfeatures
are available butpred_probs
is not, the_CLASSIFICATION_ARGS_DICT
includes the underperforming_group as an available issue type. An additional check was added to remove this issue from the list like we do forlabel
,class_imbalance
andoutlier
. A new assertion was added to the existing test suite. An error is correctly raised in master and this PR fixes the issue.The
underperforming_group
issue type should only be available whenpred_probs
and another required input (features
,knn_graph
, orcluster_ids
) are provided. This enhancement ensures that the_CLASSIFICATION_ARGS_DICT
accurately reflects this requirement. An additional check was added to excludeunderperforming_group
from the list of available issue types if these conditions are not met. This refinement aligns with how other issue types such aslabel
,class_imbalance
, andoutlier
are handled. A new assertion was added to the existing test suite to validate this behavior.Testing
🔍 Testing Done: Included a new assertion to verify the correct behavior of
underperforming_group
issue type availability based on input conditions.Links to Relevant Issues or Conversations
_CLASSIFICATION_ARGS_DICT
to clarify how the mapping should work forunderperforming_group
.Reviewer Notes
underperforming_group
issue type and its integration with the_CLASSIFICATION_ARGS_DICT
.