-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[ENH] Move Test Skip config for CNTCRegressor #8527
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
Conversation
preds = self.model_.predict([X2, X, X], self.batch_size, **kwargs) | ||
preds = np.squeeze(preds, axis=-1) | ||
return preds | ||
def _more_tags(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is how it would work in sklearn
, but not in sktime
! here we use the _tags
attribute (scroll up)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! Almost done - code formatting, see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Please also move or copy the comments that reference the issues related to the skips.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, LGTM!
The only change in this PR was for CNTCRegressor’s test tags, but the failures are in ThetaForecaster, which wasn’t touched. Could this be a flaky or unrelated issue? |
I think this one is also suffering from memory leaks, and causing unrelated tests to crash. Could you also add the I will add the estimator to this issue: #8518 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add the tests:vm
tag, and link that to #8518 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Welcome to open source!
After adding "tests:vm": True, the CNTCRegressor tests trigger usage of SeqSelfAttention, but it seems it hasn't been registered with @register_keras_serializable() — causing failures during model loading. |
I am confused - why did this succeed in the normal CI? |
I'm also unsure why the normal CI passed, but the VM run fails after adding tests:vm. |
Hi, unrelated test (test_reconciler_fit_predict) is failing, even though my PR doesn’t touch that part of the code. |
Yes, the failures are unrelated! We can merge this. |
Reference Issues/PRs
[ENH] move test skip config from tests._config to estimator tags #8515
What does this implement/fix? Explain your changes.
It migrates test skip logic for the CNTCRegressor estimator from the centralized tests/_config.py file into the estimator itself using the _more_tags.
Does your contribution introduce a new dependency? If yes, which one?
No