Skip to content

Commit

Permalink
step size, no default
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Nov 4, 2024
1 parent 1ddfe9d commit 0f62810
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/toy_shear_vectorized.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ def main(
shape_noise: float = 1e-3,
obs_noise: float = 1e-4,
sigma_e_int: float = 3e-2,
initial_shear_step_size: float = 1e-3,
n_vec: int = 50,
g1: float = 0.02,
g2: float = 0.0,
n_samples_gals: int = 1000,
n_gals: int = 1000,
n_samples_shear: int = 3000,
k: int = 1000,
n_samples_per_gal: int = 1000,
trim: int = 10,
):
key0 = random.key(base_seed)
Expand All @@ -45,15 +46,16 @@ def main(
sigma_e=shape_noise,
sigma_e_int=sigma_e_int,
sigma_m=obs_noise,
n_samples=n_samples_gals,
k=k,
n_gals=n_gals,
n_samples_per_gal=n_samples_per_gal,
)
pipe2 = partial(
pipeline_shear_inference,
true_g=jnp.array([g1, g2]),
sigma_e=shape_noise,
sigma_e_int=sigma_e_int,
n_samples=n_samples_shear,
initial_step_size=initial_shear_step_size,
)
vpipe1 = vmap(pipe1, in_axes=(0,))
vpipe2 = vmap(pipe2, in_axes=(0, 0))
Expand Down

0 comments on commit 0f62810

Please sign in to comment.