SpikeInterface / SpikeInterface/spikeinterface

regarding computing PCA components

Open
#3,687 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

postprocessing
Dominant language
Python
Stars
847
Forks
280
Avg merge
3d 9h
Merged PRs (30d)
29

Description

I keep getting this error whenever I try to run
pc = si.compute_principal_components(we, **job_kwargs)

error:

AttributeError: 'IncrementalPCA' object has no attribute 'components_'

what could be the reason ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the si.compute_principal_components(we, **job_kwargs) entry point and inspect how the IncrementalPCA object is fitted before components_ is accessed. Reproduce the error with the reported call and determine whether the issue is caused by input data, job options, or the fitting sequence; done means the cause and a verified correction or clear usage guidance are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, scikit-learn
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.