Skip to content

Commit

Permalink
join pool after constructing covariance matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpvandermause committed Jun 16, 2019
1 parent c26a190 commit 5dd377a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flare/gp_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def get_ky_mat_par(hyps: np.ndarray, training_data: list,
ky_mat = k_mat + sigma_n ** 2 * np.eye(size)

pool.close()
pool.join()

return ky_mat

Expand Down Expand Up @@ -124,6 +125,7 @@ def get_ky_and_hyp_par(hyps: np.ndarray, training_data: list,
ky_mat = k_mat + sigma_n ** 2 * np.eye(size)

pool.close()
pool.join()

return hyp_mat, ky_mat

Expand Down

0 comments on commit 5dd377a

Please sign in to comment.