Skip to content

TST use global_random_seed in sklearn/compose/tests/test_target.py #31100

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

Closed

Conversation

DeaMariaLeon
Copy link
Contributor

Reference Issues/PRs

#22827

What does this implement/fix? Explain your changes.

I'm just changing the first test test_transform_target_regressor_error. This is because I would like to know if the way I did it is correct. If it is, I'll continue with the rest of the tests in the same file.

All the seeds passed locally. (As in SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all" pytest ./sklearn/compose/tests/test_target.py -k test_transform_target_regressor_error)

Any other comments?

Friendly ping @glemaitre

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 00ebc92. Link to the linter CI: here

@DeaMariaLeon
Copy link
Contributor Author

Closing as there are no important mathematical properties tested here.

test_transform_target_regressor_error only tests invalid configurations for TransformedTargetRegressor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant