Skip to content
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

[DEP] Convert clear sky transformer to new base class #1565

Merged
merged 5 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aeon/transformations/acf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@deprecated(
version="0.9.0",
reason="AutoCorrelationTransformer statsmodels wrapper will be removed in version "
"0.10. Please use the BaseSeriesTransformer version in the "
"0.10.0. Please use the BaseSeriesTransformer version in the "
"transformations.series module called StatsModelsACF for a wrapper version.",
category=FutureWarning,
)
Expand Down Expand Up @@ -156,8 +156,8 @@ def get_test_params(cls, parameter_set="default"):
@deprecated(
version="0.9.0",
reason="PartialAutoCorrelationTransformer statsmodels wrapper will be removed"
"in version 0.10. Please use the BaseSeriesTransformer version in the "
"transformations.series module called StatsModelsACF.",
"in version 0.10.0. Please use the BaseSeriesTransformer version in the "
"transformations.series module called StatsModelsPACF.",
category=FutureWarning,
)
class PartialAutoCorrelationTransformer(BaseTransformer):
Expand Down
8 changes: 4 additions & 4 deletions aeon/transformations/augmenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class _AugmenterTags:
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="WhiteNoiseAugmenter will be removed in version 0.10.",
reason="WhiteNoiseAugmenter will be removed in version 0.10.0.",
category=FutureWarning,
)
class WhiteNoiseAugmenter(_AugmenterTags, BaseTransformer):
Expand Down Expand Up @@ -89,7 +89,7 @@ def _transform(self, X, y=None):
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="ReverseAugmenter will be removed in version 0.10.",
reason="ReverseAugmenter will be removed in version 0.10.0.",
category=FutureWarning,
)
class ReverseAugmenter(_AugmenterTags, BaseTransformer):
Expand Down Expand Up @@ -129,7 +129,7 @@ def _transform(self, X, y=None):
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="InvertAugmenter will be removed in version 0.10.",
reason="InvertAugmenter will be removed in version 0.10.0.",
category=FutureWarning,
)
class InvertAugmenter(_AugmenterTags, BaseTransformer):
Expand Down Expand Up @@ -162,7 +162,7 @@ def _transform(self, X, y=None):
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="RandomSamplesAugmenter will be removed in version 0.10.",
reason="RandomSamplesAugmenter will be removed in version 0.10.0.",
category=FutureWarning,
)
class RandomSamplesAugmenter(_AugmenterTags, BaseTransformer):
Expand Down
2 changes: 1 addition & 1 deletion aeon/transformations/binning.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="TimeBinAggregate will be removed in version 0.10.",
reason="TimeBinAggregate will be removed in version 0.10.0.",
category=FutureWarning,
)
class TimeBinAggregate(BaseTransformer):
Expand Down
4 changes: 2 additions & 2 deletions aeon/transformations/boxcox.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _calc_uniform_order_statistic_medians(n):
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="BoxCoxTransformer will be removed in version 0.10 and replaced with a "
reason="BoxCoxTransformer will be removed in version 0.10.0 and replaced with a "
"BaseSeriesTransformer version in the transformations.series module.",
category=FutureWarning,
)
Expand Down Expand Up @@ -217,7 +217,7 @@ def _inverse_transform(self, X, y=None):
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="LogTransformer will be removed in version 0.10 and replaced with a "
reason="LogTransformer will be removed in version 0.10.0 and replaced with a "
"BaseSeriesTransformer version in the transformations.series module.",
category=FutureWarning,
)
Expand Down
8 changes: 8 additions & 0 deletions aeon/transformations/clear_sky.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@

import numpy as np
import pandas as pd
from deprecated.sphinx import deprecated
from joblib import Parallel, delayed
from scipy.stats import vonmises

from aeon.transformations.base import BaseTransformer


# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="ClearSky will be removed in version 0.10.0 and replaced with a "
"BaseSeriesTransformer version in the transformations.series module.",
category=FutureWarning,
)
class ClearSky(BaseTransformer):
"""Clear sky transformer for solar data.

Expand Down
3 changes: 1 addition & 2 deletions aeon/transformations/cos.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="CosineTransformer scikit wrapper will be removed in version 0.10. Please "
"just use scikit learn.",
reason="CosineTransformer will be removed in version 0.10.",
category=FutureWarning,
)
class CosineTransformer(BaseTransformer):
Expand Down
2 changes: 1 addition & 1 deletion aeon/transformations/difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _inverse_diff(X, lags, X_diff_seq=None):
# TODO: remove v0.10.0
@deprecated(
version="0.9.0",
reason="The Differencer class will be removed in C0.10.0, see issue #1534",
reason="The Differencer class will be removed in v0.10.0, see issue #1534",
category=FutureWarning,
)
class Differencer(BaseTransformer):
Expand Down
2 changes: 1 addition & 1 deletion aeon/transformations/dobin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="DOBIN will be removed in version 0.10 and replaced with a "
reason="DOBIN will be removed in version 0.10.0 and replaced with a "
"BaseSeriesTransformer version in the transformations.series module.",
category=FutureWarning,
)
Expand Down
2 changes: 1 addition & 1 deletion aeon/transformations/exponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_test_params(cls, parameter_set="default"):
# TODO: remove in v0.10.0
@deprecated(
version="0.9.0",
reason="SqrtTransformer will be removed in version 0.10.",
reason="SqrtTransformer will be removed in version 0.10.0.",
category=FutureWarning,
)
class SqrtTransformer(ExponentTransformer):
Expand Down
2 changes: 2 additions & 0 deletions aeon/transformations/series/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
__all__ = [
"AutoCorrelationSeriesTransformer",
"BaseSeriesTransformer",
"ClearSkyTransformer",
"Dobin",
"MatrixProfileSeriesTransformer",
"StatsModelsACF",
Expand All @@ -15,6 +16,7 @@
StatsModelsACF,
StatsModelsPACF,
)
from aeon.transformations.series._clear_sky import ClearSkyTransformer
from aeon.transformations.series._dobin import Dobin
from aeon.transformations.series._matrix_profile import MatrixProfileSeriesTransformer
from aeon.transformations.series._theta import ThetaTransformer
Expand Down
Loading