Skip to content

fix text score profiles#590

Merged
cristian-tamblay merged 1 commit into
developfrom
fix/score-text
May 4, 2026
Merged

fix text score profiles#590
cristian-tamblay merged 1 commit into
developfrom
fix/score-text

Conversation

@Felipedino
Copy link
Copy Markdown
Collaborator

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:

  • Added four new scoring profiles to 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:

  • Updated English translations in models.json to include the new text classification profile names and descriptions.
  • Updated Spanish translations in models.json to include the new text classification profile names and descriptions.

Copilot AI review requested due to automatic review settings May 4, 2026 12:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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_PROFILES entries to TextClassificationTask (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 cristian-tamblay merged commit 131aec1 into develop May 4, 2026
23 checks passed
@cristian-tamblay cristian-tamblay deleted the fix/score-text branch May 4, 2026 13:19
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.

3 participants