Skip to content
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

Add LLE kernel option #293

Merged
merged 21 commits into from Apr 15, 2024
Merged

Conversation

gabelstein
Copy link
Contributor

@gabelstein gabelstein commented Apr 11, 2024

This adds a kernel option to LLE to make it more flexible.
Also, it allows for new parameter 'None' for n_neighbors and n_components to be more similar to e.g. KernelPCA from scikit-learn.

@gabelstein gabelstein marked this pull request as ready for review April 11, 2024 11:17
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.

Thanks @gabelstein for this improvement!

My major comment is that it is not necessary to add a new parameter kernel: extending metric should be enough.

pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
gabelstein and others added 2 commits April 11, 2024 14:25
Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>
pyriemann/embedding.py Outdated Show resolved Hide resolved
pyriemann/embedding.py Outdated Show resolved Hide resolved
@qbarthelemy qbarthelemy merged commit 6e07fae into pyRiemann:master Apr 15, 2024
10 checks passed
@qbarthelemy
Copy link
Member

Thx @gabelstein !

qbarthelemy added a commit that referenced this pull request Apr 17, 2024
* Adding Euclidean Alignment as implemented in the paper

* Organizing code

* Organizing code

* resolving comments

* prepare release 0.6 (#291)

* Adapting TLCenter

* update release and year

* simplify code and complete doc

* Add LLE kernel option (#293)

* Add kernel option and tests

* Update whatsnew.rst

* Update whatsnew.rst

* Apply suggestions from code review

Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>

* lint

* improve whatsnew

* Apply suggestions from code review

Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>

* linting

* add none kernel test

* might needed for flake8

* Update embedding.py

* Delete .idea/workspace.xml

* Update test_embedding.py

* Update test_embedding.py

* Apply suggestions from code review

Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>

* change error

* linting

---------

Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>

* deleting 'euclidean.py' file

* fixing flake8 errors

* updating whatsnew file

* move contrib to version 0.7 in whatsnew

---------

Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>
Co-authored-by: Gabriel Wagner vom Berg <42769425+gabelstein@users.noreply.github.com>
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.

None yet

2 participants