⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Goodness of fit fix#473

Open
plakrisenko wants to merge 2 commits intomainfrom
goodness_of_fit_fix
Open

Goodness of fit fix#473
plakrisenko wants to merge 2 commits intomainfrom
goodness_of_fit_fix

Conversation

@plakrisenko
Copy link
Member

What was displayed as Mean squared error, wan't that.
Display Mean of squared normalized residuals instead

@plakrisenko plakrisenko requested a review from a team as a code owner February 4, 2026 20:26
@plakrisenko
Copy link
Member Author

Or better show MSE?

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.46%. Comparing base (44c8062) to head (7757a1d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #473   +/-   ##
=======================================
  Coverage   75.46%   75.46%           
=======================================
  Files          62       62           
  Lines        6895     6895           
  Branches     1227     1227           
=======================================
  Hits         5203     5203           
  Misses       1221     1221           
  Partials      471      471           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

Or better show MSE?

It might be nice to have different options, but I'm not sure what should be the default.

ax.plot(x, intercept + slope * x, "r", label="fitted line")

mse = np.mean(np.abs(residual_df["residual"]))
# assumes that residuals are normalized by default
Copy link
Member

Choose a reason for hiding this comment

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

Don't assume, pass normalize=True to calculate_residuals. And maybe move calculate_residuals and msnr computation closer together, so this becomes clearer.

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