Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Goodness of fit fix#473

Open
plakrisenko wants to merge 2 commits intomain from
goodness_of_fit_fix
Open

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

Conversation

@plakrisenko
Copy link
Member

@plakrisenko plakrisenko commented Feb 4, 2026

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
Copy link
Member Author

Or better show MSE?

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

@dweindl dweindl Feb 4, 2026

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.

plakrisenko reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dweindl dweindl dweindl approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /