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

Ensure Comparer / ComparerCollection consistency #330

Merged
merged 6 commits into from
Dec 15, 2023
Merged

Conversation

ecomodeller
Copy link
Member

No description provided.

@ecomodeller ecomodeller changed the title mypy can check consistency with Protocols Ensure Comparer / ComparerCollection consistency Dec 13, 2023
@ecomodeller ecomodeller marked this pull request as ready for review December 13, 2023 20:03
Copy link
Member

@jsmariegaard jsmariegaard left a comment

Choose a reason for hiding this comment

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

See comments

@@ -458,7 +485,8 @@ def __repr__(self):
f"Observation: {self.name}, n_points={self.n_points}",
]
for model in self.mod_names:
out.append(f" Model: {model}, rmse={self.sel(model=model).score():.3f}")
out.append(f" Model: {model}, rmse={self.score()[model]:.3f}")
Copy link
Member

Choose a reason for hiding this comment

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

there is potentially a performance hit here, and maybe we should only do this if n_points < 10^5 or similar? (we don't want repr to be slow)

Copy link
Member Author

Choose a reason for hiding this comment

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

Or not at all?

Once we remove all deprecated code, score will be very short since most of the work is done in mean_skill
@jsmariegaard jsmariegaard merged commit cf765a0 into main Dec 15, 2023
@jsmariegaard jsmariegaard deleted the scoreable branch December 15, 2023 08:18
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