Skip to content

Commit

Permalink
fix photon computation with feature scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 4, 2024
1 parent 01b26a0 commit 04c45aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion n3fit/src/n3fit/model_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,10 @@ def hyperparametrizable(self, params):
)

if photons:
pdf_model.get_layer("add_photon").register_photon(xinput.input.tensor_content)
if self._scaler: # select only the non-scaled input
pdf_model.get_layer("add_photon").register_photon(xinput.input.tensor_content[:,:,1:])
else:
pdf_model.get_layer("add_photon").register_photon(xinput.input.tensor_content)

# Model generation joins all the different observable layers
# together with pdf model generated above
Expand Down

0 comments on commit 04c45aa

Please sign in to comment.