Skip to content

Mean tweedie deviance#13

Merged
smellycloud merged 5 commits intodevelopmentfrom
mean_tweedie_deviance
Feb 3, 2026
Merged

Mean tweedie deviance#13
smellycloud merged 5 commits intodevelopmentfrom
mean_tweedie_deviance

Conversation

@smellycloud
Copy link
Collaborator

No description provided.

Copy link

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

This PR adds support for Mean Tweedie Deviance (MTD) as a new evaluation metric for point predictions. MTD is particularly well-suited for conflict forecasting data with zero-inflation and right-skewed distributions.

Changes:

  • Added MTD metric calculation function with comprehensive documentation
  • Registered MTD in the metrics registry and data model
  • Added test coverage for the new metric with multiple power parameter values
  • Updated README with a comprehensive metrics table documenting all available metrics

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
views_evaluation/evaluation/metrics.py Added MTD field to PointEvaluationMetrics dataclass
views_evaluation/evaluation/metric_calculators.py Implemented calculate_mtd function and registered it in POINT_METRIC_FUNCTIONS
tests/test_metric_calculators.py Added tests for MTD calculation and updated expected metrics list
README.md Fixed typo in section header and added comprehensive metrics comparison table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smellycloud smellycloud merged commit 7d77a22 into development Feb 3, 2026
4 checks passed
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.

2 participants