Skip to content

Commit

Permalink
Change output name to latent_vectors.npy regardless of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
runboj committed Nov 29, 2023
1 parent e9837f3 commit ebfba83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pca_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def computePCA(data, n_components=2, standarize=False):
print("Latent vector shape: ", latent_vectors.shape)

# Save latent vectors
output_name = f'pca_{parameters.n_components}d.npy'
output_name = 'latent_vectors.npy'
np.save(str(output_dir) + '/' + output_name, latent_vectors)

print("PCA done, latent vector saved.")
Expand Down

0 comments on commit ebfba83

Please sign in to comment.