Skip to content

Randomness of the solver on accuracy #2

Description

@szhaoesat

Hi,
Nice work with interesting ideas!
If I understand the code correctly. The following code is used as the MH step:

FUSE/solver.py

Lines 85 to 87 in b070abf

rand = jax.random.uniform(sub_key, shape=(p,))
pos = ((jax.nn.sigmoid(-betas[j] * grad) - rand) > 0).flatten()
new_state = jnp.where(mask, pos, state)

However, it doesn't change the accuracy performance, if I change it to:
pos = -beta[j]*grad > jnp.zeros((p,))

What do you think about this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions