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

Clarify documentation regarding unequal length series limitation #2589

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
44 changes: 28 additions & 16 deletions aeon/transformations/collection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ def fit(self, X, y=None):
X : np.ndarray or list
Data to fit transform to, of valid collection type. Input data,
any number of channels, equal length series of shape ``(
n_cases, n_channels, n_timepoints)`` or list of numpy arrays (any number
of channels, unequal length series) of shape ``[n_cases]``, 2D np.array
``(n_channels, n_timepoints_i)``, where ``n_timepoints_i`` is length of
series ``i``. Other types are allowed and converted into one of the above.
n_cases, n_channels, n_timepoints)``.
A list of numpy arrays of shape ``[n_cases]``, where each element is a
2D array ``(n_channels, n_timepoints_i)``, where ``n_timepoints_i``
represents the length of series ``i``. This format is primarily used
for handling unequal-length series, but support for it depends on the
estimator's capabilities. Other input types are allowed and converted
into one of the above.

Different estimators have different capabilities to handle different
types of input. If ``self.get_tag("capability:multivariate")`` is False,
Expand Down Expand Up @@ -118,10 +121,13 @@ def transform(self, X, y=None):
X : np.ndarray or list
Data to fit transform to, of valid collection type. Input data,
any number of channels, equal length series of shape ``(
n_cases, n_channels, n_timepoints)`` or list of numpy arrays (any number
of channels, unequal length series) of shape ``[n_cases]``, 2D np.array
``(n_channels, n_timepoints_i)``, where ``n_timepoints_i`` is length of
series ``i``. Other types are allowed and converted into one of the above.
n_cases, n_channels, n_timepoints)``.
A list of numpy arrays of shape ``[n_cases]``, where each element is a
2D array ``(n_channels, n_timepoints_i)``, where ``n_timepoints_i``
represents the length of series ``i``. This format is primarily used
for handling unequal-length series, but support for it depends on the
estimator's capabilities. Other input types are allowed and converted
into one of the above.

Different estimators have different capabilities to handle different
types of input. If ``self.get_tag("capability:multivariate")`` is False,
Expand Down Expand Up @@ -172,10 +178,13 @@ def fit_transform(self, X, y=None):
X : np.ndarray or list
Data to fit transform to, of valid collection type. Input data,
any number of channels, equal length series of shape ``(n_cases,
n_channels, n_timepoints)`` or list of numpy arrays (any number of
channels, unequal length series) of shape ``[n_cases]``, 2D np.array ``(
n_channels, n_timepoints_i)``, where ``n_timepoints_i`` is length of
series ``i``. Other types are allowed and converted into one of the above.
n_channels, n_timepoints)``.
A list of numpy arrays of shape ``[n_cases]``, where each element is a
2D array ``(n_channels, n_timepoints_i)``, where ``n_timepoints_i``
represents the length of series ``i``. This format is primarily used
for handling unequal-length series, but support for it depends on the
estimator's capabilities. Other input types are allowed and converted
into one of the above.

Different estimators have different capabilities to handle different
types of input. If ``self.get_tag("capability:multivariate")`` is False,
Expand Down Expand Up @@ -222,10 +231,13 @@ def inverse_transform(self, X, y=None):
X : np.ndarray or list
Data to fit transform to, of valid collection type. Input data,
any number of channels, equal length series of shape ``(
n_cases, n_channels, n_timepoints)`` or list of numpy arrays (any number
of channels, unequal length series) of shape ``[n_cases]``, 2D np.array
``(n_channels, n_timepoints_i)``, where ``n_timepoints_i`` is length of
series ``i``. Other types are allowed and converted into one of the above.
n_cases, n_channels, n_timepoints)``.
A list of numpy arrays of shape ``[n_cases]``, where each element is a
2D array ``(n_channels, n_timepoints_i)``, where ``n_timepoints_i``
represents the length of series ``i``. This format is primarily used
for handling unequal-length series, but support for it depends on the
estimator's capabilities. Other input types are allowed and converted
into one of the above.

Different estimators have different capabilities to handle different
types of input. If ``self.get_tag("capability:multivariate")`` is False,
Expand Down