Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d227917
use_t0_sampling in explicit node of production rule
comane Mar 17, 2025
feebbd1
added docstring to produce_dataset_inputs_sampling_covmat method
comane Mar 19, 2025
dfa9ac6
t0 sampling in default nnpdf40-like runcard
comane Mar 19, 2025
2417c2b
added docs on t0-sampling to n3fit runcard detailed guide
comane Mar 19, 2025
bc9ff6a
updated docs and default values so that use_t0_sampling is used as de…
comane Mar 19, 2025
e1ed008
use_t0_sampling in explicit node of production rule
comane Mar 17, 2025
d1c1057
added docstring to produce_dataset_inputs_sampling_covmat method
comane Mar 19, 2025
a4ae379
t0 sampling in default nnpdf40-like runcard
comane Mar 19, 2025
bfc58b9
added docs on t0-sampling to n3fit runcard detailed guide
comane Mar 19, 2025
f94c824
updated docs and default values so that use_t0_sampling is used as de…
comane Mar 19, 2025
c3a29a9
Automatically regenerated regressions from PR 2300, branch reactivate…
Mar 24, 2025
6d7cd05
Automatically regenerated regressions from PR 2300, branch reactivate…
Mar 24, 2025
94552e0
Merge branch 'master' into reactivate_use_t0_sampling
comane Apr 24, 2025
1ee176a
Merge branch 'reactivate_use_t0_sampling' of https://github.com/NNPDF…
comane Apr 24, 2025
c4ffb9b
fixed test_overfit_metric.py test
comane Apr 24, 2025
e2726f2
fixed test_regression.py
comane Apr 24, 2025
5aaf03a
set use_t0_sampling to False in generate pseudodata tests
comane Apr 24, 2025
b214e5e
use_t0_sampling=True default when loading a fitenvironment
comane Apr 25, 2025
1a46e42
removed use_t0_sampling: False from config for overfit metric
comane Apr 25, 2025
f7b6507
Update validphys2/src/validphys/config.py
comane Apr 28, 2025
15c0c93
added test with use_t0_sampling = True
comane May 7, 2025
ae3c333
test that t0 sampling is different from exp
comane May 7, 2025
def7dd5
Merge branch 'master' into reactivate_use_t0_sampling
comane May 8, 2025
ad71f3f
updated reference set for fitbot
comane May 13, 2025
349c1a3
Merge branch 'reactivate_use_t0_sampling' of https://github.com/NNPDF…
comane May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/fitbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
env:
N3FIT_MAXNREP: 20 # total number of replicas to fit
POSTFIT_NREP: 16 # requested replicas for postfit
REFERENCE_SET: NNBOT-4083fbacb-2025-02-20 # reference set for exact results
REFERENCE_SET: NNBOT-5684b6fe5-2025-05-12 # reference set for exact results
STABLE_REFERENCE_SET: NNBOT-c0f99b7b3-2024-02-28 # reference set for last tag
PYTHONHASHSEED: "0"

Expand Down
27 changes: 27 additions & 0 deletions doc/sphinx/source/n3fit/runcard_detailed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,33 @@ to fix it such that it is the same for all replicas with ``same_trvl_per_replica

.. _preprocessing-label:


Monte Carlo replica data
------------------------
The uncertainties on the PDFs are determined trough a Monte Carlo sampling procedure
where each pseudodata replica is generated by adding some noise to the central value
of the data points.
In order to generate the pseudodata, the user can set the following parameter in the runcard:

.. code-block:: yaml

genrep: true

The noise is generated by sampling from a normal distribution
that is centred around zero. There are two options for the covariance matrix
of the noise: the experimental covariance matrix or the t0 covariance matrix (default).

In order to not use the t0-covariance matrix in the pseudodata generation, it is enough
to set

.. code-block:: yaml

use_t0_sampling: false

in the runcard.



Preprocessing
-------------
The behaviour of the preprocessing in the ``n3fit`` code is controlled, as in the old ``nnfit`` code, through the ``fitting:basis`` parameter of the nnpdf runcard.
Expand Down
22 changes: 10 additions & 12 deletions extra_tests/regression_fits/central_16.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,23 @@
],
"timing": {
"walltime": {
"Total": 11.937033891677856,
"Total": 11.688510417938232,
"start": 0.0,
"replica_set": 0.21915078163146973,
"replica_fitted": 11.936966180801392,
"replica_set_to_replica_fitted": 11.717815399169922
"replica_set": 0.2990105152130127,
"replica_fitted": 11.688410520553589,
"replica_set_to_replica_fitted": 11.389400005340576
},
"cputime": {
"Total": 13.590334369999997,
"Total": 13.442929807,
"start": 0.0,
"replica_set": 0.2182931840000002,
"replica_fitted": 13.59026488,
"replica_set_to_replica_fitted": 13.371971696
"replica_set": 0.2861135499999996,
"replica_fitted": 13.442828878999999,
"replica_set_to_replica_fitted": 13.156715328999999
}
},
"version": {
"keras": "3.7.0",
"tensorflow": "2.18.0, mkl=False",
"numpy": "1.26.4",
"nnpdf": "4.0.9.post1787.dev0+07f3cbb3f",
"validphys": "4.0.9.post1787.dev0+07f3cbb3f"
"nnpdf": "4.0.10.post47.dev0+c3a29a9bf",
"validphys": "4.0.10.post47.dev0+c3a29a9bf"
}
}
1,134 changes: 567 additions & 567 deletions extra_tests/regression_fits/diagonal_45.exportgrid

Large diffs are not rendered by default.

48 changes: 23 additions & 25 deletions extra_tests/regression_fits/diagonal_45.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,45 +51,43 @@
],
"stop_epoch": 1100,
"best_epoch": 1099,
"erf_tr": 3.7433674335479736,
"erf_vl": 3.0657362937927246,
"chi2": 2.1767046451568604,
"erf_tr": 3.585289716720581,
"erf_vl": 2.9731712341308594,
"chi2": 2.1915249824523926,
"pos_state": "POS_VETO",
"arc_lengths": [
1.3174412808078453,
1.507056700647889,
1.1761946212451913,
1.0013647595041133,
1.224693450344471
1.3177722493965613,
1.512841482093963,
1.1766475125696163,
1.001576902820413,
1.2186306501969704
],
"integrability": [
0.0008957577374548997,
0.0008957577374534287,
4.806768413267992e-05,
0.46389435231685505,
0.007004016137214464
0.0008946541565823252,
0.0008946541565825195,
4.7493198848669316e-05,
0.46384941786527567,
0.007007003587203298
],
"timing": {
"walltime": {
"Total": 11.051729440689087,
"Total": 11.086242198944092,
"start": 0.0,
"replica_set": 0.22888803482055664,
"replica_fitted": 11.051657915115356,
"replica_set_to_replica_fitted": 10.8227698802948
"replica_set": 0.2999849319458008,
"replica_fitted": 11.086170434951782,
"replica_set_to_replica_fitted": 10.786185503005981
},
"cputime": {
"Total": 12.532767175,
"Total": 12.684770879,
"start": 0.0,
"replica_set": 0.22790395100000005,
"replica_fitted": 12.532694279000001,
"replica_set_to_replica_fitted": 12.304790328
"replica_set": 0.28631316500000015,
"replica_fitted": 12.684697672,
"replica_set_to_replica_fitted": 12.398384507
}
},
"version": {
"keras": "3.7.0",
"tensorflow": "2.18.0, mkl=False",
"numpy": "1.26.4",
"nnpdf": "4.0.9.post1787.dev0+07f3cbb3f",
"validphys": "4.0.9.post1787.dev0+07f3cbb3f"
"nnpdf": "4.0.10.post47.dev0+c3a29a9bf",
"validphys": "4.0.10.post47.dev0+c3a29a9bf"
}
}
Loading
Loading