Skip to content

Conversation

DingWB
Copy link

@DingWB DingWB commented Oct 23, 2024

  • Closes #
  • Tests included or not required because: n_components must be less or equal to the number of samples, otherwise it would throw an error, for example, ValueError: n_components=100 must be less or equal to the batch number of samples 40. This error usually happens on the last chunk of the partial_fit.
  • Release notes not necessary because:

For example, my adata.shape[0] is 1041 and I run IncrementalPCA sc.tl.pca(adata, n_comps=100, chunked=True,chunk_size=1000), and I got an error: ValueError: n_components=100 must be less or equal to the batch number of samples 40 on scanpy/preprocessing/_pca.py:256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant