Skip to content

custom clustering now takes position matrix instead of distance^2 matrix#87

Closed
AdamOrmondroyd wants to merge 48 commits intoPolyChord:custom_clusterfrom
AdamOrmondroyd:ormorod-custom_cluster
Closed

custom clustering now takes position matrix instead of distance^2 matrix#87
AdamOrmondroyd wants to merge 48 commits intoPolyChord:custom_clusterfrom
AdamOrmondroyd:ormorod-custom_cluster

Conversation

@AdamOrmondroyd
Copy link
Collaborator

This should allow more general clustering algorithms such as k-means.

@AdamOrmondroyd
Copy link
Collaborator Author

Have a feeling that I've got the indices for position_matrix backwards - will try check this afternoon

Copy link
Member

@williamjameshandley williamjameshandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for this @Ormorod.

I've tried to catch as many of the small errors as I can in this review. I would recommend combing through with git difftool with respect to master to check to see if there are any more instances which we've missed.

@AdamOrmondroyd
Copy link
Collaborator Author

I think i've got it working again, will now swap the indices over...

push:
branches: [ master ]
pull_request:
branches: [ master ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you merge PolyChord:master into Ormorod:ormorod-custom_cluster so that the diff is cleaner?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would also be good to add a python test of clustering if you have time.

@AdamOrmondroyd AdamOrmondroyd changed the base branch from custom_cluster to master July 29, 2022 11:26
@AdamOrmondroyd AdamOrmondroyd changed the base branch from master to custom_cluster July 29, 2022 11:26
@AdamOrmondroyd AdamOrmondroyd changed the base branch from custom_cluster to master July 29, 2022 11:27
@AdamOrmondroyd AdamOrmondroyd changed the base branch from master to custom_cluster July 29, 2022 11:27
@AdamOrmondroyd
Copy link
Collaborator Author

I remembered that I had a translation of the native clustering into python down the back of the sofa, so have copied that into the new example and removed the sklearn dependence. I'll remove the redundancies (I don't think num_clusters_old gets used?)

AdamOrmondroyd and others added 2 commits February 20, 2023 12:12
* neighbor spelling (assuming we're sticking to American spelling!)

* change to checkoutv4

* change to checkout@v3

* change to pythonv4

* change to ubuntu-20.04

* return to latest ubuntu for 3.7 and 3.8, and separately include 3.6 case

* include pythons up to 3.11

* enclose versions in quotes

* revert spelling changes
@AdamOrmondroyd AdamOrmondroyd marked this pull request as draft November 24, 2025 15:21
@AdamOrmondroyd
Copy link
Collaborator Author

this is so far behind, unnecessary, and is making me feel sick — closing to help tidy up

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.

2 participants