Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Spectra/Spectra_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def __init__(self, X, labels, adj_matrix, L, weights = None, lam = 10e-4, delta=
lst_weights.append(torch.Tensor(weights[cell_type]) - torch.Tensor(np.diag(np.diag(weights[cell_type]))) )
else:
lst_weights.append(torch.zeros((self.p, self.p)))
self.weights = torch.stack(lst_weights).to(device)
else:
self.weights = self.adj_matrix
self.weights = torch.stack(lst_weights).to(device)
self.weights = self.adj_matrix
self.ct_order = ct_order
self.L_tot = L_tot
self.L_list = L_list
Expand Down