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
Add option for more than one kmeans init to autogmm #662
Add option for more than one kmeans init to autogmm #662
Conversation
❌ Deploy Preview for graspologic failed. 🔨 Explore the source changes: 0c998d5 🔍 Inspect the deploy log: https://app.netlify.com/sites/graspologic/deploys/61250197d1bec00007f1c1e8 |
@tiliu68 I am open to continue working on improving autogmm if you have any other implementations, even simple such as this one in mind. |
…/graspologic into merge_gclust_autogmm
talked to @PerifanosPrometheus yesterday and I don't think this current PR does what we want, as just changing |
I proposed modifying the param_grid somewhere to add a bunch of |
running all k-means run with multiple init
Just pushed the modified code and it should now only append models ran with multiple k-means initializations with no linkage when n_init is an integer and label_init is None. The param_grid is modified in the process_paramgrid function. |
@tliu68 I think this PR is ready for review! Please let me know if something in my code isn't clear or could be done more efficiently, I am always open to suggestions and improvements. |
@tliu68 I have made some changes requested by Pedigo such as initializing every run with a different seed(even for runs with no multiple initialization), I am now adding rows with |
@tliu68 I should have addressed the feedback provided, please let me know if you would like me to make some other changes : ) |
No more comments from me. BTW, @PerifanosPrometheus I adapted part of your code into our PR to sklearn and added your name and jhu email here (please let me know if it's not correct). |
That is correct! Thank you very much for helping me out throughout the whole process! Will update the code to match that in the sklearn PR |
@tliu68 if you approve can you approve on github? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed 'n_init' to 'kmeans_n_init'. And I think the code looks good.
@tliu68 Thank you very much for everything! |
My pleasure! |
@tliu68 can you re-review? there are some issues:
|
Apologies for the inconvenience! Will quickly check the new functionality and add tests |
@Bpedigo Solved the run error. Essentially on the last commits when tliu changed from |
@PerifanosPrometheus I'd just like a test showing that the code runs basically. Can copy one of the simple tests that are already there and just change that one parameter to |
@tliu68 any chance you'd mind resolving conflicts on this, I'm not sure what has changed since this PR. Do you still think it is good to go? |
I believe I've resolved them. And I think it looks good and does what we wanted. |
Thanks for reviewing @tliu68 and thanks for the PR @PerifanosPrometheus ! |
Reference Issues/PRs
Closes #306
What does this implement/fix? Briefly explain your changes.
Adds option to run multiple k-means initializations to autogmm
Any other comments?