fix text score profiles#590
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds scoring profile definitions for TextClassificationTask so text-classification model comparisons can use the same weighted-scoring UI pattern already used by other tasks, and wires the new profile IDs into the frontend i18n labels.
Changes:
- Added four
SCORING_PROFILESentries toTextClassificationTask(balanced / recall-heavy / precision-heavy / probability-quality). - Added English i18n labels for the new
profile_text_*keys. - Added Spanish i18n labels for the new
profile_text_*keys.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| DashAI/back/tasks/text_classification_task.py | Introduces SCORING_PROFILES for text classification so /v1/scoring/profiles?task_name=TextClassificationTask returns selectable profiles. |
| DashAI/front/src/utils/i18n/locales/en/models.json | Adds labels for the new profile_text_* IDs used by the profile selector. |
| DashAI/front/src/utils/i18n/locales/es/models.json | Adds Spanish labels for the new profile_text_* IDs used by the profile selector. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cristian-tamblay
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces new scoring profiles for text classification tasks and updates the English and Spanish translations to include these profiles. These changes enhance the flexibility and clarity of model evaluation by allowing users to select different scoring strategies based on their needs.
Text Classification Scoring Profiles:
TextClassificationTask:text_balanced: Balanced evaluation using Accuracy, F1, and ROCAUC.text_detectPositives: Focuses on detecting positives, emphasizing Recall.text_avoidFalseAlarms: Prioritizes avoiding false positives, emphasizing Precision.text_probabilityQuality: Evaluates probability quality using ROCAUC and LogLoss.Internationalization Updates:
models.jsonto include the new text classification profile names and descriptions.models.jsonto include the new text classification profile names and descriptions.