Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of NCH (Nearest Convex Hull) classifier (#253)
* Initial version of NearestConvexHull. * Added script for testing. * First version that runs. * Improved code. * Added support for parallel processing. It gives an error: AttributeError: Pipeline has none of the following attributes: decision_function. * renamed * New version that uses a new class that implements a NCH classifier. * small update * Updated to newest code - the new version of the distance function. Added an example that runs on a small number of test samples, so that we can get results quicker. * [pre-commit.ci] auto fixes from pre-commit.com hooks * reinforce constraint on weights * - remove constraints on weights - limite size of training set - change to slsqp optimizer * [pre-commit.ci] auto fixes from pre-commit.com hooks * Added n_max_hull parameter. MOABB support tested. * [pre-commit.ci] auto fixes from pre-commit.com hooks * added multiple hulls. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Code cleanups. Added second parameter that specifies the number of hulls. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Improved code. Added support for transform(). Added a new pipeline [NCH+LDA] * [pre-commit.ci] auto fixes from pre-commit.com hooks * updated default parameters * General improvements. Improvements requested by GC. * [pre-commit.ci] auto fixes from pre-commit.com hooks * removed commented code * Small adjustments. * Better class separation. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Added support for n_samples_per_hull = -1 which takes all the samples for a class. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Update pyriemann_qiskit/classification.py Set of SPD matrices. Co-authored-by: Quentin Barthélemy <[email protected]> * Update pyriemann_qiskit/classification.py Added new lines to before Parameters Co-authored-by: Quentin Barthélemy <[email protected]> * Update pyriemann_qiskit/classification.py [y == c, :, :] => [y == c] Co-authored-by: Quentin Barthélemy <[email protected]> * Update pyriemann_qiskit/classification.py NearestConvexHull text change Co-authored-by: Quentin Barthélemy <[email protected]> * Improvements proposed by Quentin. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Added comment for the optimizer. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Added some comments in classification. Changes about the global optimizer so, that it is more evident that a global one is used. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Implemented min hull. Added support for both "min-hull" and "random-hull" using the constructor parameter "hull-type". * [pre-commit.ci] auto fixes from pre-commit.com hooks * Reverted to previous version as requested by Gregoire. * fix lint issues * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: gcattan <[email protected]> Co-authored-by: Gregoire Cattan <[email protected]> Co-authored-by: Quentin Barthélemy <[email protected]>
- Loading branch information