Skip to content

Commit

Permalink
[DEP] Deprecate the update function in BaseCollectionTransformer (#1744)
Browse files Browse the repository at this point in the history
* deprecate update

* deprecate update
  • Loading branch information
TonyBagnall authored Jul 3, 2024
1 parent d6a6431 commit 6bdd247
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aeon/transformations/collection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class name: BaseCollectionTransformer

import numpy as np
import pandas as pd
from deprecated.sphinx import deprecated

from aeon.base import BaseCollectionEstimator
from aeon.transformations.base import BaseTransformer
Expand Down Expand Up @@ -273,6 +274,12 @@ def inverse_transform(self, X, y=None):

return Xt

# TODO: remove in v0.11.0
@deprecated(
version="0.10.0",
reason="The update method will be removed in version 0.11.0.",
category=FutureWarning,
)
@final
def update(self, X, y=None, update_params=True):
"""Update transformer with X, optionally y.
Expand Down

0 comments on commit 6bdd247

Please sign in to comment.