Skip to content

Commit

Permalink
Prevent phi2 from vanishing by using different seeds for replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
APJansen committed Mar 8, 2024
1 parent cad20ff commit 5936290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion n3fit/src/n3fit/tests/test_hyperopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_compute_per_fold_loss(loss_type, replica_statistic, expected_per_fold_l
This example assumes a 2 replica calculation with 3 added penalties.
"""
# generate 2 replica pdf model
pdf_model = generate_pdf(seed=0, num_replicas=2)
pdf_model = generate_pdf(seed=[1, 2], num_replicas=2)
# add 3 penalties for a 2 replica model
penalties = {
'saturation': np.array([0.0, 0.0]),
Expand Down

0 comments on commit 5936290

Please sign in to comment.