-
Notifications
You must be signed in to change notification settings - Fork 2
Add subspace orthogonality analysis for factored processes #136
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
+1,907
−184
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
60d1380
Refactor regression code to incorporate optional computation of pairw…
loren-ac 09c1d89
Refine regression API and add comprehensive orthogonality tests
loren-ac d43935a
Organize imports
ealt 9e600a4
Fix lint issues
ealt edba4fe
Fix slices
ealt 70eb56e
Simplify lr kwarg validation
ealt 9cc9810
Add return type
ealt d403bc7
Add pylint ignore
ealt 1c55be0
Fix potential division by zero
ealt c3d070c
Fix potential log(0) issue
ealt 0c9a37f
Enhance subspace orthogonality computation by adding a check for mult…
ealt 74c6760
Fix docstring inconsistency
ealt d3b0235
Update docstring
ealt 2d4a97f
Fix lint issues
ealt 335d210
Refactor linear regression kwargs validation and improve logging. Tem…
ealt 358985c
Fix merge conflict
loren-ac d6d7141
Ammended unseen merge conflict in linear_regression tests
loren-ac 9a71da4
Rename to_factors parameter to concat_belief_states in activation ana…
loren-ac ecfa55c
Update activation analysis tests for concat_belief_states semantics
loren-ac 8a16ab7
Fix validator error message and fix linting issues
loren-ac 5b6247d
Add check requiring 2+ factors in _handle_factored_regression and rem…
loren-ac 43123af
Add proper spacing to warning messages
loren-ac 729222d
Fix dictionary equivalence check in test_linear_regression and add bl…
loren-ac 2e8829f
Refactor subspace orthogonality computation for JIT compatibility
loren-ac 4136030
Fix conditional callback execution using jax.lax.cond
loren-ac 2be2032
Fix linting and formatting issues
loren-ac f77f2f5
Fix formatting issues
loren-ac 7af2bc4
Disable too-many-locals linting issue in test_linear_regression.py
loren-ac 6ee64fa
Change name of return dict from singular_values -> arrays for clarity
loren-ac 84006da
Add docstring describing return values for _compute_all_pairwise_orth…
loren-ac 556fede
Add docstring describing relevance of the do_nothing_branch function
loren-ac 5b9801d
Refactor key removal method in kwarg validator and fix docstring format
loren-ac 06c7692
Temporarily disable pylint checks during AST traversal in linear_regr…
ealt 5bcbe03
Refactor linear regression analysis registration to use partial appli…
ealt ed69814
Fix tests
ealt 46ce191
Add detailed docstring to _compute_subspace_orthogonality function, s…
ealt 049b6d6
Add todo
ealt c890e36
Fix kwarg validation
ealt 3a5a8e2
Fix tests
ealt 0987697
Add validator decorator for linear_regression_svd to enforce use_svd=…
ealt 0f37809
Fix test
ealt 028e047
Add get_robust_basis for robust orthonormal basis extraction
loren-ac 0532cd2
Pass pair of bases instead of coefficient matrices to _compute_subspa…
loren-ac 95060d1
Compute full rank and orthonormal basis of coeff matrices before pass…
loren-ac b0ecb64
Fix formatting and docstring
loren-ac 7a02602
Update comment
loren-ac 69ff3e4
Fix issues due to API changes in activation and dataframe tests
loren-ac 8e1efa4
Fix formatting issues
loren-ac 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Duplicate keyword argument causes runtime error for SVD analysis
The
linear_regression_svdregistry entry usespartial(layer_linear_regression, use_svd=True)which bindsuse_svd=Trueas a keyword argument. However, the validator_validate_linear_regression_kwargsalways setsresolved_kwargs["use_svd"]at line 54. When the analysis is called, both the partial and the resolved kwargs provideuse_svd, causing aTypeError: got multiple values for keyword argument 'use_svd'at runtime.Additional Locations (1)
simplexity/analysis/layerwise_analysis.py#L53-L54