Skip to content

Commit

Permalink
update bayesopt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinafernandezp committed Aug 31, 2023
1 parent e97b3e9 commit ecdd6f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions hnn_core/externals/bayesopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit ecdd6f5

Please sign in to comment.