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

Custom Initializations #59

Open
eweine opened this issue Nov 15, 2024 · 1 comment
Open

Custom Initializations #59

eweine opened this issue Nov 15, 2024 · 1 comment

Comments

@eweine
Copy link

eweine commented Nov 15, 2024

Thanks for the great package!

Do you think you could add a feature for RcppML::nmf where I could initialize the values of w, d, and h myself?

Thanks,

Eric.

@zdebruine
Copy link
Owner

Feature request noted, on the list for when I get back into maintaining the package.

In the meantime, you could always create an NMF model class with your own initialization, and then use the predict function to alternately update w and h until stopping criteria are satisfied.

Unless you are providing a pre-trained model of sorts as an initialization, it is rarely advisable to use a non-random initialization. If you're trying to improve on the base random initialization, I'd be curious to hear what you're doing, but I have not found any distribution or normalization algorithm that consistently improves the loss of solutions over what is currently in place.

-Zach

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

No branches or pull requests

2 participants