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
[MNT] warnings config #4536
Merged
Merged
[MNT] warnings config #4536
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fkiraly
added
enhancement
Adding new functionality
module:base-framework
BaseObject, registry, base framework
labels
May 2, 2023
fkiraly
added a commit
that referenced
this pull request
May 11, 2023
This PR removes the warning at construction of length 1 forecasting pipelines. While helpful to the user if they explicitly construct the pipeline via the constructor, it is also raised when constructing pipelines via the dunder, or the `make_pipeline` utility, in which case it confuses the user. As there is no way currently to evoke different behaviour in these two cases, we should remove it instead. Side consideration: I have thought whether the config system and #4536 could be used for this - but for this, the config would have to be set before construction, which is currently not possible, not even with #4536.
fkiraly
requested review from
achieveordie,
benHeid and
yarnabrina
as code owners
October 7, 2023 10:06
yarnabrina
added a commit
to yarnabrina/sktime-fork
that referenced
this pull request
Oct 14, 2023
* origin/main: (24 commits) [DOC] fixing docstring example for `FhPlexForecaster` (sktime#4931) Revert "[MNT] instant release action" (sktime#5421) [MNT] instant release action (sktime#5419) Release 0.24.0 (sktime#5403) 🚀 python 3.12 🚀 (sktime#5345) Revert "[MNT] instant release action" (sktime#5415) [MNT] 0.24.0 deprecations and change actions (sktime#5404) [MNT] [Dependabot](deps-dev): Update holidays requirement from <0.34,>=0.29 to >=0.29,<0.35 (sktime#5342) [MNT] Migrate from `pykalman` to `pykalman-bardo` (sktime#5277) [MNT] [Dependabot](deps-dev): Update skpro requirement from <2.1.0,>=2.0.0 to >=2.0.0,<2.2.0 (sktime#5396) [MNT] [Dependabot](deps-dev): Update numba requirement from <0.58,>=0.53 to >=0.53,<0.59 (sktime#5319) [MNT] update numba requirement from <0.58,>=0.53 to >=0.53,<0.59"" (sktime#5299) [MNT] instant release action (sktime#5265) Release 0.23.1 - omitted changelog commit (sktime#5413) Release 0.23.1 (sktime#5402) [ENH] Refactor of `DateTimeFeatures` tests to `pytest` fixtures (sktime#5397) [ENH] remove legacy except in `TestAllEstimators` for `predict_proba` (sktime#5386) [DOC] update docstring of `temporal_train_test_split` (sktime#4170) [ENH] parallelization backend calls in utility module - part 3, backend parameter passing in base class broadcasting (sktime#5405) [MNT] warnings config (sktime#4536) ...
yarnabrina
added a commit
to yarnabrina/sktime-fork
that referenced
this pull request
Oct 14, 2023
* origin/main: (24 commits) [DOC] fixing docstring example for `FhPlexForecaster` (sktime#4931) Revert "[MNT] instant release action" (sktime#5421) [MNT] instant release action (sktime#5419) Release 0.24.0 (sktime#5403) 🚀 python 3.12 🚀 (sktime#5345) Revert "[MNT] instant release action" (sktime#5415) [MNT] 0.24.0 deprecations and change actions (sktime#5404) [MNT] [Dependabot](deps-dev): Update holidays requirement from <0.34,>=0.29 to >=0.29,<0.35 (sktime#5342) [MNT] Migrate from `pykalman` to `pykalman-bardo` (sktime#5277) [MNT] [Dependabot](deps-dev): Update skpro requirement from <2.1.0,>=2.0.0 to >=2.0.0,<2.2.0 (sktime#5396) [MNT] [Dependabot](deps-dev): Update numba requirement from <0.58,>=0.53 to >=0.53,<0.59 (sktime#5319) [MNT] update numba requirement from <0.58,>=0.53 to >=0.53,<0.59"" (sktime#5299) [MNT] instant release action (sktime#5265) Release 0.23.1 - omitted changelog commit (sktime#5413) Release 0.23.1 (sktime#5402) [ENH] Refactor of `DateTimeFeatures` tests to `pytest` fixtures (sktime#5397) [ENH] remove legacy except in `TestAllEstimators` for `predict_proba` (sktime#5386) [DOC] update docstring of `temporal_train_test_split` (sktime#4170) [ENH] parallelization backend calls in utility module - part 3, backend parameter passing in base class broadcasting (sktime#5405) [MNT] warnings config (sktime#4536) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a config
"warnings"
to estimators and objects which allows to turn warnings off.It also replaces all calls from estimators to
warn
with ansktime
version that is a conditional based on an object that is queried for a tag. If the tag is not present or the object does not have a tag system, thesktime
warn
behaves likewarnings.warn
.(does not affect warnings deprecated in 0.24.0, or outside classes)
Documentation is in #5306