-
Notifications
You must be signed in to change notification settings - Fork 6
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 reproducible code for matrix exponential simulations #37
Conversation
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.
Looks good! I would also add the plots in the repo (what we did for other examples)
examples/matrix_exponentials/run.py
Outdated
|
||
|
||
D = [64, 128, 256, 512] | ||
ERR_abs = np.zeros((args.n_repeats, len(D), NT)) |
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.
mixing uppercase and lowercase not very clean
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.
Changed ERR
to err
, I think the rest is ok
return A_wishart | ||
|
||
|
||
def orthogonal(d: int, _) -> jnp.ndarray: |
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.
why the second _
argument?
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.
Unified signature with wishart
but ortho_group
is a scipy function that doesn't use jax random keys
|
||
|
||
def wishart(d: int, key: random.PRNGKey) -> jnp.ndarray: | ||
n = 2 * d # degrees of freedom |
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.
Comments seem a bit random in the scripts
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.
I think this one is ok haha have cleaned up run.py
Reproducible code for the experiments in https://arxiv.org/abs/2311.12759