-
Notifications
You must be signed in to change notification settings - Fork 13
Fit with theory covmat with n3fit #1528
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
67 commits
Select commit
Hold shift + click to select a range
3469368
Fixing loaded_commondata_with_cuts import and add theory_covmat to ex…
andreab1997 80bba9d
Fixed loading of theory_covmat also for user provided covmat
andreab1997 815a595
Fixed theory_covmat flags
andreab1997 539f366
Fixed some doc
andreab1997 99ffdd4
removed old runcards and added new working one
andreab1997 f1ac85b
Fixed conflicts
andreab1997 6e64443
Fixing conflicts
andreab1997 2601ce6
Removing comments
andreab1997 9a8cf90
Fixing stuffs
andreab1997 88adcad
Changing n3fit_exec
andreab1997 3c0d0f5
Starting to include thcovmat in make_replica
andreab1997 6278c58
Fixing
andreab1997 6a2c0e7
Added sqrt of thcovmat to make_replica
andreab1997 2b61504
Fixed sqrt of covmat
andreab1997 73e578c
Fixing number for sqrt
andreab1997 3789d1e
Fixing loading of thcovmat
andreab1997 82ce369
First solution to sqrt of thcovmat
andreab1997 234cf80
Added theory_covmat to additive contrib for make_replica
andreab1997 9d83d75
Added flags for thcovmat
andreab1997 2064796
Adding regularization to thcovmat
andreab1997 abc1a0d
Fixing flags
andreab1997 9dc505c
Fixed make_replica and vp-comparefits
andreab1997 dd96091
Remove pdb
andreab1997 36b0a55
Changing implementation of make_replica (1st step)
andreab1997 c3dc6d7
Implemented make_replica with full covmat
andreab1997 9fe8d25
Added regularization to thcovmat
andreab1997 91a9c80
Removing a pdb
andreab1997 43e60ee
Fix wrong t0 for make_replica
andreab1997 662bcf0
Added flags for t0
andreab1997 0b070c4
minor changes
andreab1997 f1c514a
Separated loops in make_replica
andreab1997 d43b357
solved bug in thcovmat order
andreab1997 7e89de0
Fixed bug in pseudodata
andreab1997 bf4f841
Minor change
andreab1997 684cba5
Restoring possibility of separating mult errors for replica generation
andreab1997 0497427
Providing defaults
andreab1997 f52c492
Changed flags names and added comments
andreab1997 d615806
Fixing flags and covmats
andreab1997 585e69a
Changed default
andreab1997 9a1e9f6
Added new sampling flag in runcards
andreab1997 166873c
Starting fix of tests
andreab1997 05d3d61
Fixed test_pythonmakereplica
andreab1997 419e9b0
Fixed test_pseudodata
andreab1997 0ce016b
Fixed regressions test
andreab1997 894138a
Added docs
andreab1997 c94f741
Fixed test_fit in n3fit
andreab1997 e9d81f8
Fixed test_fit_and_timing
andreab1997 176eb3d
Resolve conflicting files
andreab1997 a4f4133
minor changes
andreab1997 89ac78f
Added produce action in config
andreab1997 793de60
Fixed tests
andreab1997 fce0ad8
Added datasets to pythonmakereplica tests
andreab1997 9007322
Minor changes and docs
andreab1997 99185dd
Minor changes
andreab1997 1d7b089
Restored tests and commondata files to master version
andreab1997 b7cf514
Merge branch 'master' into fix_thcovmat_fit
andreab1997 1d68e85
Fixing conflict
andreab1997 a922e26
fixed conflict again
andreab1997 62392de
Merge branch 'master' into fix_thcovmat_fit
andreab1997 7d8f4e8
Rerunning the tests
andreab1997 bbd3bc0
Merge branch 'fix_thcovmat_fit' of github.com:NNPDF/nnpdf into fix_th…
andreab1997 d84bb2f
Some minor corrections
andreab1997 e3d41be
Other minor changes
andreab1997 d4b4702
Final fixes
andreab1997 4d768f0
Reformatting funcs
andreab1997 1c5205a
removed file control
andreab1997 a10450e
Implemented check of files
andreab1997 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| # | ||
| # Configuration file for n3fit | ||
| # | ||
| ########################################################################################## | ||
| description: "NNPDF4.0 methodology fit with theory covariance matrix (9pt prescription) like NNPDF31_nlo_as_0118_scalecov_9pt" | ||
|
|
||
| ########################################################################################## | ||
| # frac: training fraction | ||
| # ewk: apply ewk k-factors | ||
| # sys: systematics treatment (see systypes) | ||
| dataset_inputs: | ||
| - {dataset: NMCPD, frac: 0.5} | ||
| - {dataset: NMC, frac: 0.5} | ||
| - {dataset: SLACP, frac: 0.5} | ||
| - {dataset: SLACD, frac: 0.5} | ||
| - {dataset: BCDMSP, frac: 0.5} | ||
| - {dataset: BCDMSD, frac: 0.5} | ||
| - {dataset: CHORUSNU, frac: 0.5} | ||
| - {dataset: CHORUSNB, frac: 0.5} | ||
| - {dataset: NTVNUDMN, frac: 0.5} | ||
| - {dataset: NTVNBDMN, frac: 0.5} | ||
| - {dataset: HERACOMBNCEM, frac: 0.5} | ||
| - {dataset: HERACOMBNCEP460, frac: 0.5} | ||
| - {dataset: HERACOMBNCEP575, frac: 0.5} | ||
| - {dataset: HERACOMBNCEP820, frac: 0.5} | ||
| - {dataset: HERACOMBNCEP920, frac: 0.5} | ||
| - {dataset: HERACOMBCCEM, frac: 0.5} | ||
| - {dataset: HERACOMBCCEP, frac: 0.5} | ||
| - {dataset: HERAF2CHARM, frac: 0.5} | ||
| - {dataset: CDFZRAP, frac: 1.0} | ||
| - {dataset: D0ZRAP, frac: 1.0} | ||
| - {dataset: D0WEASY, frac: 1.0} | ||
| - {dataset: D0WMASY, frac: 1.0} | ||
| - {dataset: ATLASWZRAP36PB, frac: 1.0} | ||
| - {dataset: ATLASZHIGHMASS49FB, frac: 1.0} | ||
| - {dataset: ATLASLOMASSDY11EXT, frac: 1.0} | ||
| - {dataset: ATLASWZRAP11, frac: 0.5} | ||
| - {dataset: ATLAS1JET11, frac: 0.5} | ||
| - {dataset: ATLASZPT8TEVMDIST, frac: 0.5} | ||
| - {dataset: ATLASZPT8TEVYDIST, frac: 0.5} | ||
| - {dataset: ATLASTTBARTOT, frac: 1.0} | ||
| - {dataset: ATLASTOPDIFF8TEVTRAPNORM, frac: 1.0} | ||
| - {dataset: CMSWEASY840PB, frac: 1.0} | ||
| - {dataset: CMSWMASY47FB, frac: 1.0} | ||
| - {dataset: CMSDY2D11, frac: 0.5} | ||
| - {dataset: CMSWMU8TEV, frac: 1.0} | ||
| - {dataset: CMSZDIFF12, frac: 1.0, cfac: [NRM]} | ||
| - {dataset: CMSJETS11, frac: 0.5} | ||
| - {dataset: CMSTTBARTOT, frac: 1.0} | ||
| - {dataset: CMSTOPDIFF8TEVTTRAPNORM, frac: 1.0} | ||
| - {dataset: LHCBZ940PB, frac: 1.0} | ||
| - {dataset: LHCBZEE2FB, frac: 1.0} | ||
| - {dataset: LHCBWZMU7TEV, frac: 1.0, cfac: [NRM]} | ||
| - {dataset: LHCBWZMU8TEV, frac: 1.0, cfac: [NRM]} | ||
|
|
||
|
|
||
| ############################################################ | ||
| datacuts: | ||
| t0pdfset: 190310-tg-nlo-global # PDF set to generate t0 covmat | ||
| q2min: 13.96 # Q2 minimum | ||
| w2min: 12.5 # W2 minimum | ||
| use_cuts: fromintersection | ||
| cuts_intersection_spec: | ||
| - theoryid: 163 | ||
| - theoryid: 53 | ||
|
|
||
| ############################################################ | ||
| theory: | ||
| theoryid: 163 # database id | ||
| theorycovmatconfig: | ||
| point_prescription: "9 point" | ||
| theoryids: | ||
| from_: scale_variation_theories | ||
| pdf: NNPDF31_nlo_as_0118 | ||
| use_thcovmat_in_fitting: true | ||
| use_thcovmat_in_sampling: true | ||
|
|
||
| sampling: | ||
| use_t0: false | ||
| separate_multiplicative: false | ||
|
|
||
| ############################################################ | ||
| trvlseed: 376191634 | ||
| nnseed: 2080989803 | ||
| mcseed: 75955222 | ||
| save: false | ||
| genrep: true # true = generate MC replicas, false = use real data | ||
|
|
||
| parameters: # This defines the parameter dictionary that is passed to the Model Trainer | ||
| nodes_per_layer: [25, 20, 8] | ||
| activation_per_layer: [tanh, tanh, linear] | ||
| initializer: glorot_normal | ||
| optimizer: | ||
| clipnorm: 6.073e-6 | ||
| learning_rate: 2.621e-3 | ||
| optimizer_name: Nadam | ||
| epochs: 17000 | ||
| positivity: | ||
| initial: 184.8 | ||
| multiplier: | ||
| stopping_patience: 0.1 | ||
| layer_type: dense | ||
| dropout: 0.0 | ||
| threshold_chi2: 3.5 | ||
| ############################################################ | ||
| fitting: | ||
| fitbasis: EVOL # EVOL (7), EVOLQED (8), etc. | ||
| basis: | ||
| - {fl: sng, trainable: false, smallx: [1.046, 1.188], largex: [1.437, 2.716]} | ||
| - {fl: g, trainable: false, smallx: [0.9604, 1.23], largex: [0.08459, 6.137]} | ||
| - {fl: v, trainable: false, smallx: [0.5656, 0.7242], largex: [1.153, 2.838]} | ||
| - {fl: v3, trainable: false, smallx: [0.1521, 0.5611], largex: [1.236, 2.976]} | ||
| - {fl: v8, trainable: false, smallx: [0.5264, 0.7246], largex: [0.6919, 3.198]} | ||
| - {fl: t3, trainable: false, smallx: [-0.3687, 1.459], largex: [1.664, 3.373]} | ||
| - {fl: t8, trainable: false, smallx: [0.5357, 1.267], largex: [1.433, 2.866]} | ||
| - {fl: t15, trainable: false, smallx: [1.073, 1.164], largex: [1.503, 3.636]} | ||
|
|
||
| ############################################################ | ||
| positivity: | ||
| posdatasets: | ||
| - {dataset: POSF2U, maxlambda: 1e6} # Positivity Lagrange Multiplier | ||
| - {dataset: POSF2DW, maxlambda: 1e6} | ||
| - {dataset: POSF2S, maxlambda: 1e6} | ||
| - {dataset: POSFLL, maxlambda: 1e6} | ||
| - {dataset: POSDYU, maxlambda: 1e10} | ||
| - {dataset: POSDYD, maxlambda: 1e10} | ||
| - {dataset: POSDYS, maxlambda: 1e10} | ||
|
|
||
| ############################################################ | ||
| integrability: | ||
| integdatasets: | ||
| - {dataset: INTEGXT8, maxlambda: 1e2} | ||
| - {dataset: INTEGXT3, maxlambda: 1e2} | ||
|
|
||
| ############################################################ | ||
| debug: False | ||
| maxcores: 4 |
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
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.