aeon-toolkit / aeon

A toolkit for machine learning from time series
https://aeon-toolkit.org/
BSD 3-Clause "New" or "Revised" License
1.02k stars 128 forks source link

[MNT] Wrong type annotations for aeon classes #1928

Open SebastianSchmidl opened 3 months ago

SebastianSchmidl commented 3 months ago

Describe the issue

We started to add Python type hints to our estimators. However, some existing hints for (Aeon) classes are incorrect, e.g.

https://github.com/aeon-toolkit/aeon/blob/be4af658d47526dad272e84a7d667b0a151383dd/aeon/classification/sklearn/_rotation_forest_classifier.py#L108-L110

Suggest a potential alternative/fix

Because the RotationForestClassifier works with an instance as base_estimator the correct type would be base_estimator: BaseEstimator

We need to check the code base for further such issues.

Additional context

No response

SebastianSchmidl commented 3 months ago
aryan0931 commented 1 month ago

i would like to work on this issue

SebastianSchmidl commented 1 month ago

Sure!

@aeon-actions-bot assign @aryan0931