motiwari / BanditPAM

BanditPAM C++ implementation and Python package
MIT License
647 stars 38 forks source link

`kmed.fit` should also allow number of medoids to be passed #78

Closed motiwari closed 3 years ago

motiwari commented 3 years ago

In #48 , we removed the capability for users to pass the number of medoids, k.

Instead, we should permit the user to both pass the number of medoids to kmed.fit, and use the number the kmed object was instantiated with if none is passed

mailology commented 3 years ago

User can pass number of medoids in both kmed object and kmed.fit. We can pass k to kmed.fit to overwrite the number the kmed object was instantiated with as demonstrated below:

Screen Shot 2021-07-31 at 11 37 52 AM
motiwari commented 3 years ago

Ah nice, thanks!