PrunaAI/pruna

[FEATURE] Add a simple MSE Metric

オープン

#388 opened on 2025/10/03

 (14 件のコメント) (0 件のリアクション) (1 人の担当者)Python (94 件のフォーク)auto 404
enhancementgood first issuestale

Repository metrics

Stars
 (1,244 個のスター)
PR merge metrics
 (PR metrics pending)

説明

‼️ If you want to work on this issue: please comment below and wait until a maintainer assigns this issue to you before opening a PR to avoid several contributions on the same issue. Thanks! 😊


What You’ll Do

Right now, Pruna has several evaluation metrics, but we would need a simple MSE based metric.

You can do this by putting images on top of each other and literally looking at the pixel differences at the transitions.

Your task will be to:

  • Add a new metric class MSE under pruna/metrics/.
  • Implement the standard metric interface (update(...), compute(...)).
  • Integrate this metric into Pruna’s registry so it can be selected in evaluation runs.
  • Add tests that validate correctness on toy examples and edge cases.
  • Document the new metric and provide a simple usage example.

🤖 Useful Resources


Acceptance Criteria

  • It follows the style guidelines.
  • The new metric is documented in code and user docs.
  • Tests demonstrate that the metric computes expected scores on simple controlled examples.
  • The metric integrates properly into Pruna’s evaluation framework.

And don’t forget to give us a ⭐️!


❓ Questions?

Feel free to jump into the #contributing Discord channel if you hit any roadblocks. Can’t wait to see your contribution! 🚀


Share on Socials

Share on X

コントリビューターガイド