-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add predict_proba Support to PegasosQSVC and NeuralNetworkClassifier (#…
…871) * Adding a predict_proba function to classifiers. (#57) * Update README.md * Predict proba for NNC and PegQSVC * Rewriting predict proba features and docstring It was very inefficient before and didn't have the validation checks needed. The code is now more clear and docstring has been added. * Tweak documentation for NNC and PegasosQSVC, silence lint E1101 on torch connector * Update test with `QNN.predict_proba` * Update test with `PegasosESVC.predict_proba` * Added a release note and solved conflicts with main --------- Co-authored-by: FrancescaSchiav <[email protected]> Co-authored-by: oscar-wallis <[email protected]> Co-authored-by: Edoardo Altamura <[email protected]> Co-authored-by: smens <[email protected]> * Reformatted docs * Fix usage of sklearn --------- Co-authored-by: FrancescaSchiav <[email protected]> Co-authored-by: oscar-wallis <[email protected]> Co-authored-by: Edoardo Altamura <[email protected]> Co-authored-by: smens <[email protected]>
- Loading branch information
1 parent
cd7a332
commit 94ccb0a
Showing
5 changed files
with
204 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/feature-predict-proba-function-for-classifiers-a752c5154a7c988f.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
features: | ||
- | | ||
The :class:`~qiskit_machine_learning.algorithms.PegasosQSVC` and algorithms derived | ||
from :class:`~qiskit_machine_learning.algorithms.NeuralNetworkClassifier` module now support `predict_proba` function. | ||
This method can be utilized similarly to other `scikit-learn`-based algorithms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters