Skip to content

Commit

Permalink
UPDATE: .coveragerc and utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jungtaekkim committed Jul 12, 2018
1 parent 482c74c commit 4ebadb5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ exclude_lines =
fig_legend.legend
fig_legend.savefig
if is_tex:
if int_init
if path_save
if Y_test_truth is not None:
if path_save is not None and str_postfix is not None:
if is_legend:
if not is_legend:
if is_std:
if is_marker:
if is_zero_axis:
if is_acq_axis_small:
1 change: 1 addition & 0 deletions bayeso/utils/utils_bo.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def optimize_many_(model_bo, fun_target, X_train, Y_train, int_iter,
next_point, next_points, acquisitions, _, _, _ = model_bo.optimize(X_final, Y_final, str_initial_method=str_initial_method_ao, int_samples=int_samples_ao)
if model_bo.debug:
print('[DEBUG] optimize_many_ in utils_bo.py: next_point', next_point)
# TODO: I think this if statement has precision or type issue in Python 3.6. Check coveralls.
if np.where(np.sum(next_point == X_final, axis=1) == X_final.shape[1])[0].shape[0] > 0:
print(X_final)
next_point = get_next_best_acquisition(next_points, acquisitions, X_final)
Expand Down
4 changes: 2 additions & 2 deletions bayeso/utils/utils_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ def plot_minimum_time(arr_times, arr_minima, list_str_label, int_init, is_std,
fig = plt.figure(figsize=(8, 6))
ax = plt.gca()

list_x_data = []
for ind_minimum, arr_minimum in enumerate(arr_minima):
list_x_data = [] # pragma: no cover
for ind_minimum, arr_minimum in enumerate(arr_minima): # pragma: no cover
ind_color = ind_minimum % len(colors)
ind_marker = ind_minimum % len(markers)
_, mean_min, std_min = utils_common.get_minimum(arr_minimum, int_init)
Expand Down

0 comments on commit 4ebadb5

Please sign in to comment.