File tree Expand file tree Collapse file tree
surrogates/LatentPolynomial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ def total_loss(
399399 traj_loss = criterion (x_pred , x_true )
400400
401401 # identity loss (reconstruct x0)
402- identity = self .identity_loss (x_true , params )
402+ identity = self .identity_loss (x_true , params . to ( self . device ) )
403403
404404 # derivative losses: compute once
405405 d_pred = self .first_derivative (x_pred )
Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ def check_and_load_data(
159159 elif normalisation_mode == "standardise" :
160160 data_info ["mean_params" ] = params_info ["mean" ]
161161 data_info ["std_params" ] = params_info ["std" ]
162+ if verbose :
163+ print ("Parameters normalized." )
164+ print (f"Parameters info: { params_info } " )
162165
163166 data_info ["log10_transform" ] = True if log else False
164167
Original file line number Diff line number Diff line change 55from pathlib import Path
66
77import optuna
8- from optuna .study import MaxTrialsCallback
98from optuna .trial import TrialState
109from tqdm import tqdm
1110
You can’t perform that action at this time.
0 commit comments