-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow to use QAOA-CV optimizer inside classification module #312
Conversation
…ityToPenalty - check if cost operator is pauli identity - only one parameter in initial guess? (I am not sure why though)
fb82bb1
to
fcad45b
Compare
pyriemann_qiskit/utils/docplex.py
Outdated
"""Helper to create a docplex representation of a | ||
covariance matrix variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A general remark for all dosctrings of pyRiemann-qiskit:
the short summary must be a one-line summary; you can give more details in the extended summary.
pyriemann_qiskit/utils/docplex.py
Outdated
|
||
Parameters | ||
---------- | ||
covmat : ndarray, shape (n_features, n_features) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two general remarks.
Like in pyRiemann, try to replace inputs called covmat
by X
, more sklearn
istic.
And try to generalize description from covariance matrices to SPD matrices.
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
benchmarks/light_benchmark.py
Outdated
import sys | ||
import warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sys
and warnings
are standard libraries, and must be imported in the first block of imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx @gcattan !
Thank you for the review :) |
This PR allows to use QAOA-CV docplex optimizer inside the classification module.
To date, only naive QAOA optimizer and classical optimization are available.
Issues: #29, #30