-
Notifications
You must be signed in to change notification settings - Fork 171
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
[ENH] Estimators failing test check_fit_deterministic #2457
Comments
@TonyBagnall how do I reproduce these errors? |
Hi @TonyBagnall, I went through the There are two approaches to resolve this:
Bottleneck in the code:self._random_state = (
np.random.RandomState(self.seed)
if not isinstance(self.seed, np.random.RandomState)
else self.seed
) |
I think the correct way to solve this issue would rather be to change these estimators non "aeon-standard" def check_fit_deterministic(estimator, datatype):
"""Check that calling fit twice is equivalent to calling it once."""
estimator = _clone_estimator(estimator, random_state=0) If the estimator don't use a random state parameter that might be the cause of the issue I think ? We would need to put up a deprecation notice if we do that. |
Thanks for the reply. As far my understanding, I shall change the "seed" parameter to random_state. Regarding the deprecation notice, I’m not entirely sure about the best approach. |
Hi @TonyBagnall @baraline , I have made the requested changes. Please have a look. |
Describe the feature or idea you want to propose
fails of check_fit_deterministic are usually related to seeding, and looking at the list may be numba related
Describe your proposed solution
fix or create issue
Describe alternatives you've considered, if relevant
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: