mthelm85 / PAM.jl

Partitioning Around Medoids
MIT License
3 stars 0 forks source link

Could you plug this to BetaML? #3

Open sylvaticus opened 1 year ago

sylvaticus commented 1 year ago

Hello, I have read your issue in the Clustering.jl repository and some threads in Discourse. I am the maintainer of BetaML, a general Machine Learning toolkit that includes also some clustering algorithms. We do have there a Kmedoids clustering algorithm, but it is not the PAM one, and I am interested in adding it. Would you be interested in adding the algorithm in this repository to BetaML?

mthelm85 commented 1 year ago

Absolutely! I am not familiar with the BetaML code so I will likely need some guidance.

sylvaticus commented 1 year ago

The code is in Clustering_hard.jl and the basic stack is:

init_representatives, classAssignation, updateKMedoidsRepresentatives! => kmedoids => fit!(KMedoidsClusterer(),X)

Basically there would be to replace the kmedoids function (that is not exported) with the PAM algorithm and adjust the fit! "method" of KMedoidsClusterer.