Skip to content

Commit

Permalink
Merge branch 'master' into dev2023Sept26
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusMNoack authored Oct 12, 2023
2 parents 97f2c74 + ddf2176 commit e85a330
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fvgp/gp2Scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def ranges(N, nb):

def compute_covariance(self, hyperparameters, client, batched=False):
"""computes the covariance matrix from the kernel on HPC in sparse format"""

NUM_RANGES = self.num_batches
ranges = self.ranges(len(self.x_data), NUM_RANGES) # the chunk ranges, as (start, end) tuples
ranges_ij = list(
Expand Down Expand Up @@ -198,6 +197,7 @@ def __init__(self, input_space_dim,
print("non zero elements: ", sp.nnz)
print("Size in GBits: ", sp.data.nbytes / 1e9)
print("Sparsity: ", sp.nnz / float(self.point_number) ** 2)

if self.point_number <= 5000:
print("Here is an image:")
plt.imshow(sp.toarray())
Expand Down Expand Up @@ -276,7 +276,6 @@ def compute_covariance(self, hyperparameters, variances, client):
# del scatter_future

#########

def free_workers(self, futures, finished_futures):
free_workers = set()
remaining_futures = []
Expand Down

0 comments on commit e85a330

Please sign in to comment.