-
Notifications
You must be signed in to change notification settings - Fork 91
Batched inference CEBRA & padding at the Solver level
#168
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
Merged
MMathisLab
merged 107 commits into
AdaptiveMotorControlLab:main
from
CeliaBenquet:batched-inference-and-padding
May 23, 2025
Merged
Changes from all commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
283de06
first proposal for batching in tranform method
gonlairo 202e379
first running version of padding with batched inference
gonlairo 1f1989d
start tests
gonlairo 8665660
add pad_before_transform to fit function and add support for convolut…
gonlairo 8d5b114
remove print statements
gonlairo 32c5ecd
first passing test
gonlairo 9928f63
add support for hybrid models
gonlairo be5630a
rewrite transform in sklearn API
gonlairo 1300b20
baseline version of a torch.Datset
gonlairo bc6af24
move batching logic outside solver
gonlairo ec377b9
move functionality to base file in solver and separate in functions
gonlairo 6f9ca98
add test_select_model for single session
gonlairo fbe7eb4
add checks and test for _process_batch
gonlairo 463b0f8
add test_select_model for multisession
gonlairo 5219171
make self.num_sessions compatible with single session training
gonlairo f9bd1a6
improve test_batched_transform_singlesession
gonlairo e23a7ef
make it work with small batches
gonlairo 19c3f87
make test with multisession work
gonlairo 87bebac
change to torch padding
gonlairo f0303e0
add argument to sklearn api
gonlairo 8c8be85
add torch padding to _transform
gonlairo 59df402
convert to torch if numpy array as inputs
gonlairo 1aadc8b
add distinction between pad with data and pad with zeros and modify t…
gonlairo bc8ee25
differentiate between data padding and zero padding
gonlairo 5e7a14c
remove float16
gonlairo 928d882
change argument position
gonlairo 07bac1c
clean test
gonlairo 0823b54
clean test
gonlairo 9fe3af3
Fix warning
CeliaBenquet b417a23
Improve modularity remove duplicate code and todos
CeliaBenquet 83c1669
Add tests to solver
CeliaBenquet 9c46eb9
Remove unused import in solver/utils
CeliaBenquet c845ec3
Fix test plot
CeliaBenquet 9db3e37
Add some coverage
CeliaBenquet 8e5f933
Fix save/load
CeliaBenquet d08e400
Remove duplicate configure_for in multi dataset
CeliaBenquet 0c693dd
Make save/load cleaner
CeliaBenquet ae056b2
Merge branch 'main' into batched-inference-and-padding
CeliaBenquet 794867b
Fix codespell errors
CeliaBenquet 0bb6549
Fix docs compilation errors
CeliaBenquet 04a102f
Fix formatting
CeliaBenquet 7aab282
Fix extra docs errors
CeliaBenquet ffa66eb
Fix offset in docs
CeliaBenquet 7f58607
Remove attribute ref
CeliaBenquet c2544c7
Add review updates
CeliaBenquet ad5da03
Merge branch 'main' into batched-inference-and-padding
stes f6aa2e6
Merge branch 'main' into batched-inference-and-padding
MMathisLab e1b7cc7
apply ruff auto-fixes
stes 0eac868
Merge remote-tracking branch 'origin/main' into batched-inference-and…
stes 81b964c
Concatenate last batches for batched inference (#200)
CeliaBenquet a09d123
Fix linting errors in tests (#188)
stes 521f003
Fix `scikit-learn` reference in conda environment files (#195)
stes 46610e3
Add support for new __sklearn_tags__ (#205)
stes e8004ba
Update workflows to actions/setup-python@v5, actions/cache@v4 (#212)
stes ddc00f4
Fix deprecation warning force_all_finite -> ensure_all_finite for skl…
icarosadero 7dc9f81
Add tests to check legacy model loading (#214)
stes a2a6c44
Add improved goodness of fit implementation (#190)
stes a3b143f
Support numpy 2, upgrade tests to support torch 2.6 (#221)
stes 0d5d82a
Release 0.5.0rc1 (#189)
stes 92fd9bc
Fix pypi action (#222)
stes 69d91ef
Update base.py (#224)
icarosadero 782b63a
Change max consistency value to 100 instead of 99 (#227)
CeliaBenquet d72b055
Update assets.py --> force check for parent dir (#230)
MMathisLab 9fd91c3
User docs minor edit (#229)
MMathisLab 8d636e9
General Doc refresher (#232)
MMathisLab 36370be
render plotly in our docs, show code/doc version (#231)
MMathisLab f7f4d7f
Update layout.html (#233)
MMathisLab 798f7b2
Update conf.py (#234)
MMathisLab 4a2996d
Refactoring setup.cfg (#228)
MMathisLab 7abd1b0
Home page landing update (#235)
MMathisLab 673019a
v0.5.0 (#238)
MMathisLab 9625680
Upgrade docs build (#241)
stes 95e5296
Allow indexing of the cebra docs (#242)
stes 20f5a77
Fix broken docs coverage workflows (#246)
stes 0d85abb
Add xCEBRA implementation (AISTATS 2025) (#225)
gonlairo b19be59
start tests
gonlairo e908083
remove print statements
gonlairo 3d2b1e3
first passing test
gonlairo 3ef4bc1
move functionality to base file in solver and separate in functions
gonlairo ad56472
add test_select_model for multisession
gonlairo b73c123
remove float16
gonlairo d71ca8d
Improve modularity remove duplicate code and todos
CeliaBenquet 3e91459
Add tests to solver
CeliaBenquet c6179ad
Fix save/load
CeliaBenquet dafabe5
Fix extra docs errors
CeliaBenquet 7b0cc68
Add review updates
CeliaBenquet 7dfd4b9
apply ruff auto-fixes
stes 3acbdf4
fix linting errors
stes 5745449
Run isort, ruff, yapf
CeliaBenquet fa3cd3e
Merge remote-tracking branch 'upstream/main' into batched-inference-a…
CeliaBenquet 1453885
Merge branch 'main' into batched-inference-and-padding
MMathisLab acd2111
Fix gaussian mixture dataset import
CeliaBenquet 217a8a7
Fix all tests but xcebra tests
CeliaBenquet a1218aa
Fix pytorch API usage example
CeliaBenquet 64d1db8
Make xCEBRA compatible with the batched inference & padding in solver
CeliaBenquet 9875a38
Add some tests on transform() with xCEBRA
CeliaBenquet 65fc455
Add some docstrings and typings and clean unnecessary changes
CeliaBenquet 1d0c498
Implement review comments
CeliaBenquet 4a25899
Fix sklearn test
CeliaBenquet 0d56e44
Add name in NOTE
CeliaBenquet c5dc011
Implement reviews on tests and typing
CeliaBenquet c9fa5c8
Fix import errors
CeliaBenquet 4632c04
Add select_model to aux solvers
CeliaBenquet 22e3c47
Fix docs error
CeliaBenquet 2fcfb7f
Add tests on the private functions in base solver
CeliaBenquet 66fc6aa
Update tests and duplicate code based on review
CeliaBenquet 4d68110
Merge branch 'main' into batched-inference-and-padding
CeliaBenquet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.