You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encounters infinite loop when i run a saga_gui.py
First, the torch version caused the following error in def pca.
TypeError: linalg_eig() got an unexpected keyword argument 'eigenvectors'
So I changed it to the code below and the gui screen doesn't pop up when I run it and it's stuck in loading model file done.
`
def pca(self, X, n_components=3):
n = X.shape[0]
mean = torch.mean(X, dim=0)
X = X - mean
covariance_matrix = (1/n) * torch.matmul(X.T, X).float()
eigenvalues, eigenvectors = torch.linalg.eig(covariance_matrix)
# Convert complex eigenvalues and eigenvectors to real parts
eigenvalues = eigenvalues.real
eigenvectors = eigenvectors.real
# Sort eigenvectors based on eigenvalues in descending order
idx = torch.argsort(-eigenvalues)
eigenvectors = eigenvectors[:, idx]
proj_mat = eigenvectors[:, :n_components]
return proj_mat
`
Why is this like that?
The text was updated successfully, but these errors were encountered:
Hi. Sorry for the late response. But the SAGA gui currently cannot support remote server (at least I failed). You may need x11 forwarding for this but I'm not sure whether it can work. You can use the notebook provided by us as a replacement.
I encounters infinite loop when i run a saga_gui.py
First, the torch version caused the following error in def pca.
TypeError: linalg_eig() got an unexpected keyword argument 'eigenvectors'
So I changed it to the code below and the gui screen doesn't pop up when I run it and it's stuck in loading model file done.
`
def pca(self, X, n_components=3):
`
Why is this like that?
The text was updated successfully, but these errors were encountered: