Skip to content

Commit

Permalink
commit with regression test hopefully passing before regenerating
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Jun 6, 2024
1 parent 7bb80f3 commit 2a7cd9c
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/diagonal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ mcseed: 1
diagonal_basis: True

load: "weights.weights.h5"
sampling:
separate_multiplicative: True

parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/feature_scaling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ mcseed: 1

load: "weights_feature.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/flavour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ mcseed: 1

load: "weights_flavour.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/no_csr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ sum_rules: "ALLBUTCSR"

save: "weights_casymm.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 9]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/no_lagrange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ mcseed: 1

load: "weights.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/no_msr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ mcseed: 1
sum_rules: "VSR"

load: "weights.weights.h5"
sampling:
separate_multiplicative: True

parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/no_sumrules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ sum_rules: False

load: "weights.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/no_vsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ sum_rules: "MSR"

load: "weights.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/normal_fit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ mcseed: 1

save: "normal_fit.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/polarized_evol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ mcseed: 746898422
genrep: true

load: "weights_polevol.weights.h5"
sampling:
separate_multiplicative: True

parameters:
nodes_per_layer: [25, 20, 4]
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/single_dense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ mcseed: 1
save: "single_dense.weights.h5"
load: "single_dense.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 2 additions & 0 deletions extra_tests/regression_fits/trainable_prepro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ mcseed: 1

load: "weights.weights.h5"

sampling:
separate_multiplicative: True
parameters: # This defines the parameter dictionary that is passed to the Model Trainer
nodes_per_layer: [15, 10, 8]
activation_per_layer: ['sigmoid', 'tanh', 'linear']
Expand Down
2 changes: 1 addition & 1 deletion validphys2/src/validphys/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def tmp(tmpdir):
PSEUDODATA_FIT = "pseudodata_test_fit_n3fit_221130"


base_config = dict(pdf=PDF, use_cuts='nocuts', dataset_inputs=DATA, theoryid=THEORYID, Q=10)
base_config = dict(pdf=PDF, use_cuts='nocuts', dataset_inputs=DATA, theoryid=THEORYID, Q=10, separate_multiplicative=True)


@pytest.fixture(scope='module')
Expand Down
1 change: 1 addition & 0 deletions validphys2/src/validphys/tests/test_overfit_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"t0pdfset": {"from_": "datacuts"},
"pdf": {"from_": "fit"},
"dataset_inputs": {"from_": "fit"},
"separate_multiplicative": True
}


Expand Down
2 changes: 1 addition & 1 deletion validphys2/src/validphys/tests/test_pseudodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_no_savepseudodata():

def test_read_matches_recreate():
reads = API.read_fit_pseudodata(fit=PSEUDODATA_FIT)
recreates = API.recreate_fit_pseudodata(fit=PSEUDODATA_FIT)
recreates = API.recreate_fit_pseudodata(fit=PSEUDODATA_FIT, separate_multiplicative=True)
for read, recreate in zip(reads, recreates):
# We ignore the absolute ordering of the dataframes and just check
# that they contain identical elements.
Expand Down

0 comments on commit 2a7cd9c

Please sign in to comment.