Skip to content

[ENH] Add n_timepoints in the metadata stored by BaseSeriesEstimator #2769

@baraline

Description

@baraline

Describe the feature or idea you want to propose

Unless mistaken, we currently don't store n_timepoints information in the metadata of BaseSeriesEstimator.

Describe your proposed solution

Axis dependent inside the function

def _check_X(self, X, axis: int = 0):

timepoint_idx = 1 if self.axis == 1 else 0
self.metadata["n_timepoints"] = X.shape[timepoint_idx]

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature, improvement request or other non-bug code enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions