Skip to content

Commit 6b37a04

Browse files
authored
Fix logging of error during Bayesian optimization
1 parent 52f05e3 commit 6b37a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/NN.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def objective(trial, ftrain_TFR, fvalid_TFR, ftest_TFR,
656656
model.train(epochs, patience, save=False, parallel=True)
657657
return np.amin(model.historyNN.history['val_loss'])
658658
except Exception as e:
659-
logger.error("Trial " + str(trial.number) + "failed with error:\n" + e)
659+
logger.error("Trial " + str(trial.number) + "failed with error:\n" + str(e))
660660
return 1e100
661661

662662
def driver(inputdir, outputdir, datadir, plotdir, preddir,

0 commit comments

Comments
 (0)