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

fix evaluation scores graph #252

Merged
merged 1 commit into from
Dec 3, 2024
Merged

fix evaluation scores graph #252

merged 1 commit into from
Dec 3, 2024

Conversation

dinmukhamedm
Copy link
Member

@dinmukhamedm dinmukhamedm commented Dec 3, 2024

Previously all points that were strictly equal to the upper bound of the last bucket would be added to every bucket


Important

Fixes SQL query in evaluation_scores.rs to correctly handle points equal to the upper bound of the last bucket in evaluation score buckets.

  • Behavior:
    • Fixes SQL query in get_evaluation_score_buckets_based_on_bounds() in evaluation_scores.rs to correctly handle points equal to the upper bound of the last bucket.
    • Adds additional binding for bucket_count to ensure correct bucket assignment.
  • Misc:
    • Updates SQL query logic to prevent double counting of values at bucket boundaries.

This description was created by Ellipsis for 0d5b8b0. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 0d5b8b0 in 11 seconds

More details
  • Looked at 21 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. app-server/src/ch/evaluation_scores.rs:236
  • Draft comment:
    Ensure that the bind parameters match the placeholders in the SQL query. The current change adds bucket_count as a bind parameter, which corresponds to the ? in the condition (value = ? AND intervals.interval_num = ?). This is correct, but ensure that all other bind parameters are correctly aligned with their respective placeholders.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description indicates a fix for a bug where points equal to the upper bound of the last bucket were added to every bucket. The change in the SQL query correctly addresses this by adding a condition to check the interval number. However, the bind parameters need to match the query placeholders.

Workflow ID: wflow_gV21ZCCjYWbxCFom


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@dinmukhamedm dinmukhamedm merged commit fb50618 into dev Dec 3, 2024
1 check passed
@dinmukhamedm dinmukhamedm deleted the fix/eval-graph branch December 3, 2024 06:23
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.

1 participant