From ecdd6f5a7ea644902b7cc5263b53a43b01d952a7 Mon Sep 17 00:00:00 2001 From: Carolina Fernandez Date: Wed, 30 Aug 2023 17:28:08 -0400 Subject: [PATCH] update bayesopt.py --- hnn_core/externals/bayesopt.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hnn_core/externals/bayesopt.py b/hnn_core/externals/bayesopt.py index c61dbacd8..4fe60b93c 100644 --- a/hnn_core/externals/bayesopt.py +++ b/hnn_core/externals/bayesopt.py @@ -114,15 +114,6 @@ def bayes_opt(func, x0, cons, acquisition, maxfun=200, if debug: print("iter", i, "best_x", best_x, best_f) - if debug: - import matplotlib.pyplot as plt - scale = 1e6 - sort_idx = np.argsort(X) - plt.plot(np.array(X)[sort_idx] * scale, - np.array(y)[sort_idx] * scale, 'bo-') - plt.axvline(best_x * scale, linestyle='--') - plt.show() - return best_x, best_f