Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Ghxst07
Copy link
Contributor

@Ghxst07 Ghxst07 commented Jul 11, 2025

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

preds = self.model_.predict([X2, X, X], self.batch_size, **kwargs)
preds = np.squeeze(preds, axis=-1)
return preds
def _more_tags(self):
Copy link
Collaborator

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)

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

see above

@Ghxst07 Ghxst07 requested a review from fkiraly July 11, 2025 19:52
Copy link
Collaborator

@fkiraly fkiraly left a 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

@Ghxst07 Ghxst07 requested a review from fkiraly July 11, 2025 20:33
Copy link
Collaborator

@fkiraly fkiraly left a 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.

@Ghxst07 Ghxst07 requested a review from fkiraly July 11, 2025 20:46
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Great, LGTM!

@Ghxst07
Copy link
Contributor Author

Ghxst07 commented Jul 11, 2025

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?

@fkiraly
Copy link
Collaborator

fkiraly commented Jul 12, 2025

I think this one is also suffering from memory leaks, and causing unrelated tests to crash.

Could you also add the tests:vm tag to ensure it runs on its own VM?

I will add the estimator to this issue: #8518

Copy link
Collaborator

@fkiraly fkiraly left a 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 ?

@Ghxst07 Ghxst07 requested a review from fkiraly July 12, 2025 09:11
fkiraly
fkiraly previously approved these changes Jul 12, 2025
Copy link
Collaborator

@fkiraly fkiraly left a 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!

@Ghxst07
Copy link
Contributor Author

Ghxst07 commented Jul 12, 2025

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.

@fkiraly
Copy link
Collaborator

fkiraly commented Jul 12, 2025

I am confused - why did this succeed in the normal CI?

@Ghxst07
Copy link
Contributor Author

Ghxst07 commented Jul 12, 2025

I'm also unsure why the normal CI passed, but the VM run fails after adding tests:vm.
Just to check – is there anything specific I can do from my end to help resolve or debug this?

@Ghxst07
Copy link
Contributor Author

Ghxst07 commented Jul 12, 2025

Hi, unrelated test (test_reconciler_fit_predict) is failing, even though my PR doesn’t touch that part of the code.
Is it okay to proceed, or should I rebase once ?

@Ghxst07 Ghxst07 requested a review from fkiraly July 12, 2025 18:28
@fkiraly
Copy link
Collaborator

fkiraly commented Jul 13, 2025

Yes, the failures are unrelated! We can merge this.

@fkiraly fkiraly added module:tests test framework functionality - only framework, excl specific tests module:regression regression module: time series regression enhancement Adding new functionality labels Jul 13, 2025
@fkiraly fkiraly merged commit 39736c3 into sktime:main Jul 13, 2025
93 of 97 checks passed
@Ghxst07 Ghxst07 deleted the fix-test-tags branch July 18, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality module:regression regression module: time series regression module:tests test framework functionality - only framework, excl specific tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants