b-remy / gems

GEnerative Morphology for Shear
MIT License
0 stars 0 forks source link

Demonstrate Model Bias with real galaxies #7

Open b-remy opened 2 years ago

b-remy commented 2 years ago

This pull request is to document the implementation of a script for the joint inference of shear and shape for #5 .

So far, we assume:

Remarks:

b-remy commented 2 years ago

Also sometimes it infers -gamma_1 insted of gamma_1.

b-remy commented 2 years ago

The last version of the code is working well as illustrated in #5 .

I'll try to reproduce the issue I had above. In this scenario there were to calls to the model, which may trouble the code idk...

with ed.tape() as true_params:
    ims = model(N*N, stamp_size)

# Apply a constant shear on the field
custom_shear = [0.01, 0.]
with ed.condition(hlr=true_params['hlr'],
                  gamma=custom_shear,
                  e=true_params['e'],
                  ):
    ims = model(N*N, stamp_size)
b-remy commented 2 years ago

This pull request contains a lot of code a files, but can be summarized as follow:

Merging this pull request would close the following issues: