We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We started to add Python type hints to our estimators. However, some existing hints for (Aeon) classes are incorrect, e.g.
aeon/aeon/classification/sklearn/_rotation_forest_classifier.py
Lines 108 to 110 in be4af65
Type[BaseEstimator]
estimatorFactory = BaseEstimator
BaseEstimator
estimator = BaseEstimator()
Because the RotationForestClassifier works with an instance as base_estimator the correct type would be base_estimator: BaseEstimator
RotationForestClassifier
base_estimator
base_estimator: BaseEstimator
We need to check the code base for further such issues.
No response
The text was updated successfully, but these errors were encountered:
aeon/aeon/regression/sklearn/_rotation_forest_regressor.py
Line 107 in be4af65
check_random_state()
RandomState
aeon/aeon/classification/distance_based/_proximity_forest.py
Line 92 in be4af65
Sorry, something went wrong.
i would like to work on this issue
Sure!
@aeon-actions-bot assign @aryan0931
aryan0931
No branches or pull requests
Describe the issue
We started to add Python type hints to our estimators. However, some existing hints for (Aeon) classes are incorrect, e.g.
aeon/aeon/classification/sklearn/_rotation_forest_classifier.py
Lines 108 to 110 in be4af65
Type[BaseEstimator]
references the type of the class (thus,estimatorFactory = BaseEstimator
is of typeType[BaseEstimator]
)BaseEstimator
references an instance of this class (thus,estimator = BaseEstimator()
is of typeBaseEstimator
)Suggest a potential alternative/fix
Because the
RotationForestClassifier
works with an instance asbase_estimator
the correct type would bebase_estimator: BaseEstimator
We need to check the code base for further such issues.
Additional context
No response
The text was updated successfully, but these errors were encountered: