Skip to content

Commit

Permalink
bug fix in gp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusMNoack committed Mar 25, 2024
1 parent 3caa788 commit 7670e5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions fvgp/gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,7 @@ def _LU(self, KV, vec):
return KVinvY, KVlogdet, factorization_obj

def _Chol(self, KV, vec):
st = time.time()
if self.info: print("Dense Cholesky in progress ...")
c, l = cho_factor(KV)
factorization_obj = ("Chol", c, l)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_fvgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@

"""Tests for `fvgp` package."""
def test_single_task_init_basic():
my_gp1 = GP(input_dim, x_data, y_data, init_hyperparameters = np.array([1, 1, 1, 1, 1, 1]), compute_device = 'cpu')
my_gp1 = GP(input_dim, x_data, y_data)
my_gp1 = GP(input_dim, x_data, y_data, init_hyperparameters = np.array([1, 1, 1, 1, 1, 1]), compute_device = 'cpu', info = True)
my_gp1 = GP(input_dim, x_data, y_data, info = True)
my_gp1 = GP(input_dim, x_data, y_data, init_hyperparameters = np.array([1, 1, 1, 1, 1, 1]))
my_gp1 = GP(input_dim, x_data, y_data, init_hyperparameters = np.array([1, 1, 1, 1, 1, 1]), store_inv = False)
my_gp1 = GP(input_dim, x_data, y_data, init_hyperparameters = np.array([1, 1, 1, 1, 1, 1]), store_inv = False, info = True)
my_gp1 = GP(input_dim, x_data, y_data, init_hyperparameters = np.array([1, 1, 1, 1, 1, 1]), args = {'a':2.})


Expand Down

0 comments on commit 7670e5e

Please sign in to comment.