-
Notifications
You must be signed in to change notification settings - Fork 14
Refactoring model creation code #1734
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
Merged
Merged
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
6b40d90
Name input layer xgrids
APJansen 57f6552
Rename and simplify dense_me -> neural_network
APJansen d81814d
Rename i->i_replica and layer_seed->replica_seed
APJansen 557b14c
Rename preprocessing -> prefactor
APJansen e087a38
Create apply_prefactor layer (can't name yet as it is created twice r…
APJansen ca187e4
Merge msr.py into layers/msr_normalization.py
APJansen 97d7409
Turn msr_impose into class method
APJansen e0fb2f5
Use MSR_Normalization class attributes
APJansen c8e7e63
Create integration grid in MSR_Normalizations init
APJansen c5551f1
Renamings
APJansen 6241614
Prepare call method in MSR_Normalization
APJansen 4ecb1ba
Share more layers, add names
APJansen 767977b
Create named layers in msr_normalization
APJansen d6ed37c
Add pdf_integrated step
APJansen 396fc6f
Move computation of xdivided to init, move integration into call
APJansen 472abed
remove tempcall
APJansen 08c8876
Fix bug introduced after renaming preprocessing to prefactor
APJansen 5337d18
Join neural network layers into their own NN_i model
APJansen ed85389
Clarify layer names
APJansen 6bc651f
Revert all changes to MSR
APJansen 96328a2
Rewrite msr into a model that takes as inputs the pdf, pdf on integra…
APJansen 82cf95b
Set shape of integration grid to (None, 1) rather than (2000, 1) to d…
APJansen 7b475ba
Revert renaming of Preprocessing to Prefactor (now use PreprocessingF…
APJansen 7153e93
Clean up model creation code
APJansen dfb4eed
Reorganize input options, keeping effect the same
APJansen 9dc1384
Make preprocessing layers dependent on which option is used (scaling,…
APJansen 7c6d8ae
Fix msr with scaling
APJansen cbce181
Fix msr with scaling, shape of integration grid
APJansen 3296aa4
Set shape of x=1 input to None so tensorflow displays proper shapes
APJansen 853dd2e
Merge from master
APJansen fba7827
Add dummy ph_replica argument to MSR_Normalization layer
APJansen 38e1984
Factor out scaler into own module scaler.py
APJansen d0065df
Do scaling of [0,1] to [-1, 1] inside scaler
APJansen 2d2f8a0
Replace None layers with identity functions
APJansen 08d26f2
Add option to save model plots (to current directory for now)
APJansen 577d5d8
Add test for xDivide
APJansen f798c22
Update xDivide documentation to include v15 in the default settings, …
APJansen 00a4974
Simplify xDivide layer
APJansen 4c94100
Clarify xDivide documentation.
APJansen 4f3d949
Turn off plotting of model for now
APJansen 96e71b2
Merge branch 'master' into model_refactor
APJansen b279068
Manually change regression weights hdf5 file structure to fit new model
APJansen c1bb0ac
Manually change developing_weights.h5 file structure to fit new model
APJansen 7d80a61
Remove inp option in pdfNN_layer_generator, instead enforcing adding …
APJansen 38a1ccb
Incorporate Juan's comments
APJansen 789a4c3
Incorporate Roy's comments
APJansen fe84657
Remove plotting of model from model_trainer
APJansen 1f4537e
Remove unnecessary get_original layer from msr if scaler is not used
APJansen 6353db3
Add model plot example script to documentation.
APJansen 559d480
Merge master
APJansen 0168360
Apply black to all changed files.
APJansen 801366a
Remove sentence about plotting full model.
APJansen f99b77b
Remove now unused scatter_to_zero.
APJansen 2b8c806
Merge branch 'master' into model_refactor
APJansen 0bd5582
Pass replica number as additional argument to impose_msr model
APJansen 8dbc98d
Replace indexing with tf.gather since ph_replica is now a tensor
APJansen a0f6e09
gather -> op_gather
APJansen 20833ca
Revert to commit 2b8c806e
APJansen 6a1ce02
Set photon integral as explicit argument to normalization model
APJansen 6617da2
Remove duplicate imports
APJansen 5aa72fc
Remove duplicate imports
APJansen a80a77e
Add link to plot_model documentation
APJansen f82b407
Move photon integrals down to final loop
APJansen 80ef5d7
Simplify numpy_to_input, removing unused no_reshape and setting gridp…
APJansen ccfb7ce
Merge branch 'master' into model_refactor
APJansen 0a4d684
Improve numpy_to_input documentation
APJansen 0518c7c
Apply black and isort to all affected files
APJansen e92b706
Update n3fit/src/n3fit/backends/keras_backend/operations.py
APJansen 5bcf169
Restore comments in scaler
APJansen 1a9ce30
Add Optional type hint for arguments that can be None
APJansen 9b6a675
Use numpy.typing
APJansen 8566728
Raise error from original error
APJansen 27f9357
Fix error when not imposing sumrule
APJansen 694417d
Merge branch 'master' into model_refactor
APJansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.