Skip to content

Conversation

@CeliaBenquet
Copy link
Member

When running align_embeddings(embeddings, labels, normalize=False) quantized_embedding_norm in quantized_embeddings.append(quantized_embedding_norm) is undefined.

Solved by appending quantized_embedding to quantized_embeddings instead when normalize=False.

@CeliaBenquet CeliaBenquet self-assigned this Apr 25, 2025
@cla-bot cla-bot bot added the CLA signed label Apr 25, 2025
@CeliaBenquet CeliaBenquet requested review from MMathisLab and stes April 25, 2025 17:09
Copy link
Member

@stes stes left a comment

Choose a reason for hiding this comment

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

thanks, but can you also add the test that fails without the change, and passes now?

Copy link
Member

@MMathisLab MMathisLab left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks @CeliaBenquet

@CeliaBenquet
Copy link
Member Author

test added @stes thanks :)

@CeliaBenquet CeliaBenquet requested a review from stes May 5, 2025 13:18
Copy link
Member

@stes stes left a comment

Choose a reason for hiding this comment

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

Lgtm

@stes stes merged commit a5814bb into AdaptiveMotorControlLab:main May 5, 2025
11 checks passed
@stes stes deleted the celia/fix-align-emb-no-norm branch May 5, 2025 13:21
stes pushed a commit that referenced this pull request Jun 5, 2025
* start tests

* remove print statements

* first passing test

* move functionality to base file in solver and separate in functions

* add test_select_model for multisession

* remove float16

* Improve modularity remove duplicate code and todos

* Add tests to solver

* Fix save/load

* Fix extra docs errors

* Add review updates

* apply ruff auto-fixes

* fix linting errors

* Run isort, ruff, yapf

* Fix gaussian mixture dataset import

* Fix all tests but xcebra tests

* Fix pytorch API usage example

* Make xCEBRA compatible with the batched inference & padding in solver

* Add some tests on transform() with xCEBRA

* Add some docstrings and typings and clean unnecessary changes

* Implement review comments

* Fix sklearn test

* Initial pass at integrating unifiedCEBRA

* Add name in NOTE

* Implement reviews on tests and typing

* Fix import errors

* Add select_model to aux solvers

* Fix tests

* Add mask tests

* Fix docs error

* Remove masking init()

* Remove shuffled neurons in unified dataset

* Remove extra datasets

* Add tests on the private functions in base solver

* Update tests and duplicate code based on review

* Fix quantized_embedding_norm undefined when `normalize=False` (#249)

* Fix tests

* Adapt unified code to get_model method

* Update mask.py

add headers to new files

* Update masking.py

- header

* Update test_data_masking.py

- header

* Implement review comments and fix typos

* Fix docs errors

* Remove np.int typing error

* Fix docstring warning

* Fix indentation docstrings

* Implement review comments

* Fix circular import and abstract method

* Add maskedmixin to __all__

* Implement extra review comments

* Change masking kwargs as tuple and not dict in sklearn impl

* Add integrations/decoders.py

* Fix typo

* minor simplification in solver

---------

Note, some comments in this PR overlap with
#168
and
#225
which were developed in parallel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants