Skip to content

Commit 64fea5d

Browse files
committed
adding positivity settings in replicas hyperparams
1 parent 708b109 commit 64fea5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

n3fit/src/n3fit/model_trainer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,8 @@ def hyperparametrizable(self, params):
883883
# Fill the 3 dictionaries (training, validation, experimental) with the layers and losses
884884
# when k-folding, these are the same for all folds
885885
positivity_dict = params.get("positivity", {})
886+
if not self.mode_hyperopt:
887+
positivity_dict['initial'] = hyperopt_params["initial"][idx_hyperparamters]
886888
integrability_dict = params.get("integrability", {})
887889
self._generate_observables(
888890
positivity_dict.get("multiplier"),

0 commit comments

Comments
 (0)