-
Notifications
You must be signed in to change notification settings - Fork 14
QED tests #1738
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
QED tests #1738
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
cf8afeb
Add theories 398 397 to theory.db
niclaurenti 70458a3
Merge branch 'master' into QED-tests
niclaurenti c6914a1
Merge branch 'master' into qed-tests
niclaurenti fcc3e8e
Add qed test in test_evolven3fit.py
niclaurenti 5e7176e
Add qed test in test_fit
niclaurenti 0af3004
Add qed test in test_fit 2
niclaurenti 2256664
Refector QED tests
niclaurenti 5a319fc
Fix test
niclaurenti 9758018
Add fiatlux precision in the runcard
niclaurenti 0a926fd
Rename abs_err -> eps_base
niclaurenti 32e1a86
Use .json from linux machine
niclaurenti e2954ae
Fix very small bug in interp1d
niclaurenti 3d1783d
Download theoryIDs
niclaurenti 296e2d4
Add whitelines
niclaurenti 22085f9
Merge branch 'qed-tests' of github.com:NNPDF/nnpdf into qed-tests
niclaurenti 7585eea
Load theoryID from fit
niclaurenti 57a5343
Use test theory in test_compute
niclaurenti 077e2ed
Fix charm mass in test
niclaurenti 388be7b
speed up photon computation in test
niclaurenti ddc57d3
Fix charm mass in test again
niclaurenti dba334a
Fix testing of alpha
niclaurenti 3fa81ba
Fix test_compute
niclaurenti bb3a1fd
Add test on photon computation
niclaurenti 3901ba5
Remove unused dependencies
niclaurenti f3de6b0
Polish test
niclaurenti 7550e2d
Polish test again
niclaurenti 98d919f
Pass test theory to test_structurefunctions.py
niclaurenti 4b0ed9c
Run isort and black on test_structurefunctions.py
niclaurenti 5ede6f4
Test init parameters of test_structurefunctions.py
niclaurenti 52e9130
Run isort and black on test_structurefunctions.py
niclaurenti 370d0dd
Use API to install pdfset
niclaurenti b97450d
Refactor test_structurefunctions.py and add docstrings
niclaurenti 3e548a8
Small modification
niclaurenti b40db35
Use FIATLUX_DEFAULT from photon.compute
niclaurenti 0958b08
Remove unused import
niclaurenti 61c5bb9
Remove variable NNPDF40
niclaurenti 53d7c73
Add comment
niclaurenti 502997f
Merge branch 'master' into qed-tests
niclaurenti d5a48f9
Check installation of error pdf in test
niclaurenti 1e237da
Call black and isort
niclaurenti 1e105cd
Fix last commit
niclaurenti 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| # | ||
| # Configuration file for n3fit regression tests | ||
| # This runcard includes two DIS datasets, one Hadronic dataset | ||
| # and two positivity datasets | ||
| # | ||
|
|
||
| ############################################################ | ||
| description: n3fit regression test | ||
|
|
||
| ############################################################ | ||
| # frac: training fraction | ||
| # ewk: apply ewk k-factors | ||
| # sys: systematics treatment (see systypes) | ||
| dataset_inputs: | ||
| - { dataset: NMC, frac: 0.5 } | ||
| - { dataset: SLACP_dwsh, frac: 0.5} | ||
| - { dataset: CMSZDIFF12, frac: 0.5, cfac: ['QCD'], sys: 10 } | ||
| - { dataset: ATLASTTBARTOT8TEV, frac: 1.0, cfac: ['QCD'] } | ||
|
|
||
| ############################################################ | ||
| datacuts: | ||
| t0pdfset: NNPDF40_nnlo_as_01180 # PDF set to generate t0 covmat | ||
| q2min : 3.49 # Q2 minimum | ||
| w2min : 12.5 # W2 minimum | ||
| combocuts : NNPDF31 # NNPDF3.0 final kin. cuts | ||
| jetptcut_tev : 0 # jet pt cut for tevatron | ||
| jetptcut_lhc : 0 # jet pt cut for lhc | ||
| wptcut_lhc : 30.0 # Minimum pT for W pT diff distributions | ||
| jetycut_tev : 1e30 # jet rap. cut for tevatron | ||
| jetycut_lhc : 1e30 # jet rap. cut for lhc | ||
| dymasscut_min: 0 # dy inv.mass. min cut | ||
| dymasscut_max: 1e30 # dy inv.mass. max cut | ||
| jetcfactcut : 1e30 # jet cfact. cut | ||
|
|
||
| ############################################################ | ||
| theory: | ||
| theoryid: 398 # database id | ||
|
|
||
| ############################################################ | ||
| genrep: True # on = generate MC replicas, False = use real data | ||
| trvlseed: 3 | ||
| nnseed: 2 | ||
| mcseed: 1 | ||
|
|
||
| load: "weights.h5" | ||
|
|
||
| parameters: # This defines the parameter dictionary that is passed to the Model Trainer | ||
| nodes_per_layer: [15, 10, 8] | ||
| activation_per_layer: ['sigmoid', 'sigmoid', 'linear'] | ||
| initializer: 'glorot_normal' | ||
| optimizer: | ||
| optimizer_name: 'RMSprop' | ||
| learning_rate: 0.00001 | ||
| clipnorm: 1.0 | ||
| epochs: 1100 | ||
| positivity: | ||
| multiplier: 1.05 | ||
| initial: 1.5 | ||
| stopping_patience: 0.10 # percentage of the number of epochs | ||
| layer_type: 'dense' | ||
| dropout: 0.0 | ||
| threshold_chi2: 10.0 | ||
|
|
||
| fitting: | ||
| fitbasis: NN31IC # EVOL (7), EVOLQED (8), etc. | ||
| basis: | ||
| - { fl: sng, smallx: [1.05,1.19], largex: [1.47,2.70] } | ||
| - { fl: g, smallx: [0.94,1.25], largex: [0.11,5.87] } | ||
| - { fl: v, smallx: [0.54,0.75], largex: [1.15,2.76] } | ||
| - { fl: v3, smallx: [0.21,0.57], largex: [1.35,3.08] } | ||
| - { fl: v8, smallx: [0.52,0.76], largex: [0.77,3.56] } | ||
| - { fl: t3, smallx: [-0.37,1.52], largex: [1.74,3.39] } | ||
| - { fl: t8, smallx: [0.56,1.29], largex: [1.45,3.03] } | ||
| - { fl: cp, smallx: [0.12,1.19], largex: [1.83,6.70] } | ||
|
|
||
| ############################################################ | ||
| positivity: | ||
| posdatasets: | ||
| - { dataset: POSF2U, maxlambda: 1e6 } # Positivity Lagrange Multiplier | ||
| - { dataset: POSDYS, maxlambda: 1e5 } | ||
|
|
||
| integrability: | ||
| integdatasets: | ||
| - {dataset: INTEGXT8, maxlambda: 1e2} | ||
|
|
||
| ############################################################ | ||
| debug: true | ||
|
|
||
| fiatlux: | ||
| luxset: NNPDF40_nnlo_as_01180 | ||
| additional_errors: true # should be set to true only for the last iteration | ||
| luxseed: 1234567890 | ||
| eps_base: 1e-2 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| { | ||
| "preprocessing": [ | ||
| { | ||
| "fl": "sng", | ||
| "smallx": 1.1307647228240967, | ||
| "largex": 2.6348154544830322, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "g", | ||
| "smallx": 1.1853630542755127, | ||
| "largex": 1.5627975463867188, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "v", | ||
| "smallx": 0.5399999022483826, | ||
| "largex": 2.004500150680542, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "v3", | ||
| "smallx": 0.3061824142932892, | ||
| "largex": 2.624323606491089, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "v8", | ||
| "smallx": 0.5774596929550171, | ||
| "largex": 2.120253801345825, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "t3", | ||
| "smallx": 1.3441987037658691, | ||
| "largex": 1.7566683292388916, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "t8", | ||
| "smallx": 1.04995858669281, | ||
| "largex": 1.945939064025879, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "cp", | ||
| "smallx": 0.7400740385055542, | ||
| "largex": 3.461853504180908, | ||
| "trainable": true | ||
| } | ||
| ], | ||
| "stop_epoch": 1100, | ||
| "best_epoch": 1099, | ||
| "erf_tr": 31.486101150512695, | ||
| "erf_vl": 28.4218692779541, | ||
| "chi2": 19.611825942993164, | ||
| "pos_state": "POS_VETO", | ||
| "arc_lengths": [ | ||
| 1.035533162554303, | ||
| 1.1953713068471692, | ||
| 1.0881025884095246, | ||
| 1.3414978876721764, | ||
| 1.0839843290638607 | ||
| ], | ||
| "integrability": [ | ||
| 0.002653829054906187, | ||
| 0.002653829054905521, | ||
| 0.0002567724250169823, | ||
| 3.2896786332130423, | ||
| 0.003927801561079747 | ||
| ], | ||
| "timing": { | ||
| "walltime": { | ||
| "Total": 58.37841296195984, | ||
| "start": 0.0, | ||
| "replica_set": 0.3208029270172119, | ||
| "replica_fitted": 58.37802076339722, | ||
| "replica_set_to_replica_fitted": 58.057217836380005 | ||
| }, | ||
| "cputime": { | ||
| "Total": 61.517351913999995, | ||
| "start": 0.0, | ||
| "replica_set": 2.813359167999998, | ||
| "replica_fitted": 61.516948647, | ||
| "replica_set_to_replica_fitted": 58.703589479 | ||
| } | ||
| }, | ||
| "version": { | ||
| "keras": "2.11.0", | ||
| "tensorflow": "2.11.0, mkl=False", | ||
| "numpy": "1.22.4", | ||
| "nnpdf": "4.0.6.846+g0a926fdf1", | ||
| "validphys": "4.0.6.846+g0a926fdf1" | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| { | ||
| "preprocessing": [ | ||
| { | ||
| "fl": "sng", | ||
| "smallx": 1.1090763807296753, | ||
| "largex": 2.683891534805298, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "g", | ||
| "smallx": 0.9399998784065247, | ||
| "largex": 1.6250606775283813, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "v", | ||
| "smallx": 0.7499998211860657, | ||
| "largex": 1.7267229557037354, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "v3", | ||
| "smallx": 0.21201331913471222, | ||
| "largex": 1.3532426357269287, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "v8", | ||
| "smallx": 0.7599998712539673, | ||
| "largex": 2.390087127685547, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "t3", | ||
| "smallx": 1.4388009309768677, | ||
| "largex": 2.2958621978759766, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "t8", | ||
| "smallx": 1.0386217832565308, | ||
| "largex": 1.7531665563583374, | ||
| "trainable": true | ||
| }, | ||
| { | ||
| "fl": "cp", | ||
| "smallx": 0.24638080596923828, | ||
| "largex": 2.7976953983306885, | ||
| "trainable": true | ||
| } | ||
| ], | ||
| "stop_epoch": 1100, | ||
| "best_epoch": 1099, | ||
| "erf_tr": 3.5809452533721924, | ||
| "erf_vl": 3.6826603412628174, | ||
| "chi2": 2.141340732574463, | ||
| "pos_state": "POS_VETO", | ||
| "arc_lengths": [ | ||
| 1.3194883264768875, | ||
| 1.1995146017416334, | ||
| 1.054266019685804, | ||
| 5.074692492247958, | ||
| 1.0689068380364566 | ||
| ], | ||
| "integrability": [ | ||
| 0.02917606895789332, | ||
| 0.029176068957894374, | ||
| 0.0003924771135637162, | ||
| 12.764093160629272, | ||
| 0.02982003148645135 | ||
| ], | ||
| "timing": { | ||
| "walltime": { | ||
| "Total": 57.77593541145325, | ||
| "start": 0.0, | ||
| "replica_set": 0.31868839263916016, | ||
| "replica_fitted": 57.77560114860535, | ||
| "replica_set_to_replica_fitted": 57.45691275596619 | ||
| }, | ||
| "cputime": { | ||
| "Total": 60.771742980000006, | ||
| "start": 0.0, | ||
| "replica_set": 2.6913169609999983, | ||
| "replica_fitted": 60.771408723, | ||
| "replica_set_to_replica_fitted": 58.080091762 | ||
| } | ||
| }, | ||
| "version": { | ||
| "keras": "2.11.0", | ||
| "tensorflow": "2.11.0, mkl=False", | ||
| "numpy": "1.22.4", | ||
| "nnpdf": "4.0.6.846+g0a926fdf1", | ||
| "validphys": "4.0.6.846+g0a926fdf1" | ||
| } | ||
| } |
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
Binary file not shown.
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.