how to watch the update of the centroids of K-mean model

MahmoudEmara
MahmoudEmara New Altair Community Member
edited November 5 in Community Q&A
hello everyone, I'm new to Rapidminee I was wondering how to watch or get the value of the centroids of K-mean model in each run or iteration to determine which centroid (i.e., cluster) reached a fixpoint first, and in which run? at what point (i.e, run) none of the centroids get updated anymore (i.e., all reached a fixpoint)? 

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    i am sorry, but i think this is not supported out of the box. you would need to run the algorithm with different iterations and export the centroids for each run.

    Cheers,
    Martin
  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Hi @MahmoudEmara,

    I propose a partial solution to your problem : 

    Put a KMeans  + Extract Cluster Prototypes operators inside a Loop Parameters operator (loop over the max runs parameter) and then put a Merge operator at the end of the process to have the centroids according the run iteration in a unique results table .

    In attached file, the process I propose.

    Hope this helps,

    Regards,

    Lionel

    PS : To use the Merge operator, you have to install the Operator Toolbox extension from the marketplace.