Skip to content

Breakdown the classification module into algorithms and wrappers #357

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

Merged
merged 28 commits into from
Feb 27, 2025

Conversation

gcattan
Copy link
Collaborator

@gcattan gcattan commented Feb 25, 2025

The classification module is becoming quiet big.
This PR breaks it into wrappers (such as QuantumNCH) and core algorithms (such as NearestConvexHull).
The PR also extracts the get_docplex_optimizer_from_params_bag method to utils.py.

Closes #257

@gcattan gcattan marked this pull request as ready for review February 25, 2025 12:19
@gcattan gcattan requested a review from qbarthelemy February 25, 2025 12:19
Copy link
Member

@qbarthelemy qbarthelemy left a comment

Choose a reason for hiding this comment

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

Can you complete test_classification.py with NearestConvexHull?

@gcattan
Copy link
Collaborator Author

gcattan commented Feb 26, 2025

Thank you for the review @qbarthelemy !
We already have some tests for the NCH:

image

Do you have in mind a specific scenario that you would like me to cover in this PR?

@qbarthelemy
Copy link
Member

qbarthelemy commented Feb 26, 2025

Unit tests test_classification.py check QuanticNCH.

We must add NearestConvexHull, with parametrize to test all possible parameters.

@gcattan
Copy link
Collaborator Author

gcattan commented Feb 27, 2025

Ok. The test showed the predict_proba was missing for the NearestConvexHull.
I copied the one of MDM.

Copy link
Member

@qbarthelemy qbarthelemy left a comment

Choose a reason for hiding this comment

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

Thx @gcattan

@gcattan gcattan merged commit 7452bea into pyRiemann:main Feb 27, 2025
14 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.

Refactor classification module
2 participants