Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 9, 2021
Embed
What would you like to do?
sparse_pca = SparsePCA(n_components=60, alpha=0.1)
sparse_pca.fit_transform(digits.data / 255)
print(sparse_pca.components_.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment