-
Notifications
You must be signed in to change notification settings - Fork 81
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
Tackle Typing and Linting Errors #379
base: main
Are you sure you want to change the base?
Commits on Oct 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3f89961 - Browse repository at this point
Copy the full SHA 3f89961View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ad1fa7 - Browse repository at this point
Copy the full SHA 3ad1fa7View commit details -
Convert strings with latex to raw-strings
This stops type-checkers worrying about escape-sequences.
Configuration menu - View commit details
-
Copy full SHA for dc7f675 - Browse repository at this point
Copy the full SHA dc7f675View commit details -
Prepend space in uni-dim jaxtyping hints
Resolves F821 - see: https://docs.kidger.site/jaxtyping/faq/#flake8-or-ruff-are-throwing-an-error
Configuration menu - View commit details
-
Copy full SHA for 20a1df7 - Browse repository at this point
Copy the full SHA 20a1df7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca9a75c - Browse repository at this point
Copy the full SHA ca9a75cView commit details -
Rename and change PRNGKey Type
- Rename to PRNGKeyT to differentiate from `jax.random` function - Change type to Array - see https://jax.readthedocs.io/en/latest/jep/9263-typed-keys.html#type-annotations-for-prng-keys
Configuration menu - View commit details
-
Copy full SHA for 75205f8 - Browse repository at this point
Copy the full SHA 75205f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42c5c22 - Browse repository at this point
Copy the full SHA 42c5c22View commit details -
Minor arg and type changes in utils/utils.py
- Change default arguments to floats in `monotonically_increasing` function - Help type-checkers parse `compute_state_overlap` function - Update `keepdims` default value in `pytree_sum` to match `jnp.sum`
Configuration menu - View commit details
-
Copy full SHA for 7da57ef - Browse repository at this point
Copy the full SHA 7da57efView commit details -
Update HMM[Parameter|Property]Set protocols
- Change attributes of these protocols to read-only. - This change means that instances of `NamedTuple` are compatible with these protocols - Add runtime_checkable decorator to Protocols - This allows the Protocolcs to be checked by runtime type checkers such as beartype which can be used to verify jaxtyping annotations
Configuration menu - View commit details
-
Copy full SHA for 62df3ba - Browse repository at this point
Copy the full SHA 62df3baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45134e8 - Browse repository at this point
Copy the full SHA 45134e8View commit details -
Update type annotations in hmm inference code.
Major changes: - Fix an error in `_compute_all_transition_probs` which caused the return array to be too short. - The `filtered_probs` were being truncated twice instead of once. - Replace `jaxtyping.Int` with `dynamax.typing.IntScalar` or `int` - this reflects when integer scalar arrays are accepted - `jaxtyping.[Dtype]` cannot be used directly for type checking instead they must be used as part of an array. - Fix the shape of `transition_matrix`: - if transition_matrix has a leading timestep axis it should be of length T-1 not of length T. - Add annotation indicating that `transition_matrix` is an optional argument - Raise ValueError when neither `transition_matrix` or `transition_fn` provided.
Configuration menu - View commit details
-
Copy full SHA for 0d4ca74 - Browse repository at this point
Copy the full SHA 0d4ca74View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfd3bfc - Browse repository at this point
Copy the full SHA cfd3bfcView commit details -
Add further type annotations to hmm transitions class
Further, enforce that either key or initial_probs specified to initialize method.
Configuration menu - View commit details
-
Copy full SHA for d0a0e0f - Browse repository at this point
Copy the full SHA d0a0e0fView commit details -
Add further type annotations to hmm initial base class
Further, enforce that either key or initial_probs specified in initialize method.
Configuration menu - View commit details
-
Copy full SHA for 4b2c40b - Browse repository at this point
Copy the full SHA 4b2c40bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c84ddc - Browse repository at this point
Copy the full SHA 4c84ddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e04c9e - Browse repository at this point
Copy the full SHA 7e04c9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2fffa4 - Browse repository at this point
Copy the full SHA b2fffa4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a45e61b - Browse repository at this point
Copy the full SHA a45e61bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32db62a - Browse repository at this point
Copy the full SHA 32db62aView commit details -
Add further type annotations to Gaussian HMMs
- Add annotations to the *GaussianHMMEmssions classes - Apply some small formatting changes to reduce line length in places
Configuration menu - View commit details
-
Copy full SHA for 81138f8 - Browse repository at this point
Copy the full SHA 81138f8View commit details -
Add further type annotations to gmhmms
- Add annotations to the *GaussianMixtureHMMEmssions classes
Configuration menu - View commit details
-
Copy full SHA for 4e36520 - Browse repository at this point
Copy the full SHA 4e36520View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b7ee53 - Browse repository at this point
Copy the full SHA 4b7ee53View commit details -
Configuration menu - View commit details
-
Copy full SHA for e246606 - Browse repository at this point
Copy the full SHA e246606View commit details -
Configuration menu - View commit details
-
Copy full SHA for e19748d - Browse repository at this point
Copy the full SHA e19748dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2098cf - Browse repository at this point
Copy the full SHA c2098cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 547c610 - Browse repository at this point
Copy the full SHA 547c610View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58c9127 - Browse repository at this point
Copy the full SHA 58c9127View commit details