Skip to content

fix: rename _convert_X in TimesNet to avoid BaseClassifier collision#5

Merged
TonyBagnall merged 5 commits intoaeon-toolkit:mainfrom
LinGinQiu:my-fix
Mar 23, 2026
Merged

fix: rename _convert_X in TimesNet to avoid BaseClassifier collision#5
TonyBagnall merged 5 commits intoaeon-toolkit:mainfrom
LinGinQiu:my-fix

Conversation

@LinGinQiu
Copy link
Copy Markdown
Contributor

Summary

  • What does this PR change?
    The wrapper’s _convert_X overrides BaseClassifier._convert_X, causing the base class to unexpectedly receive a tuple (data, mask) instead of an np.ndarray.

Result: This triggers a ValueError in _fit during the input validation check.

Fix: Renamed the wrapper's internal helper to _reshape_X to avoid overriding the aeon base method.

Checklist

  • I have updated documentation if needed.
  • I have added tests or validation steps if needed.
  • If this PR submits results, it follows results/schema.md.

Copy link
Copy Markdown
Contributor

@TonyBagnall TonyBagnall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great thanks, this is all very experimental, not run it myself yet :)

@TonyBagnall TonyBagnall merged commit 12b6b11 into aeon-toolkit:main Mar 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants