Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: CNMF.initialization.greedyROI() - Add a limited mechanism to specify params in calls to sklearn's NMF #1478

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

pgunn
Copy link
Member

@pgunn pgunn commented Mar 4, 2025

This adds a mechanism to greedyROI() to allow overriding of calls to sklearn's NMF(), passing in overrides as a dict.

(it also, as usual, includes some minor cleanups I spotted while looking at the code).

Will be WIP until the mechanism is plumbed up to CNMFParams, which will go through initialization.py:initialize_components() as well as utilities.py:manually_refine_components() although we may decide not to do it for the latter one maybe.

I went back-and-forth over whether to go with a dict or pass in params individually, but I think grouping them at least at this level is a little closer to where we eventually want to be - passing a structured deep dictionary parameters object around rather than having dozens of arguments everywhere and unwieldy gigantic signatures to all functions/methods.

@pgunn
Copy link
Member Author

pgunn commented Mar 4, 2025

This addresses #1476

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