fmcquillan99 edited a comment on issue #441: Kmeans: simplified silhouette per 
point for k-means
URL: https://github.com/apache/madlib/pull/441#issuecomment-531943634
 
 
   (3)
   Also, how do I use 1 row output from `kmeans_random_auto()` or 
`kmeanspp_auto()` with `simple_silhouette_points()`
   e.g., if my I have
   ```
    k |                                                                         
                                                                                
                 
                                         centroids                              
                                                                                
                 
                                                                                
     |               cluster_variance                |   objective_fn   | 
frac_reassigned | num_i
   terations |    silhouette     |       elbow       
   
---+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   
----------------------------------------------------------------------------------+-----------------------------------------------+------------------+-----------------+------
   ----------+-------------------+-------------------
    2 | 
{{13.872,1.814,2.376,15.56,88.2,2.806,2.928,0.288,1.844,5.35198,1.044,3.348,988},{14.036,2.018,2.536,16.56,108.6,3.004,3.03,0.298,2.038,6.10598,1.004,3.326,1340}}
       
                                                                                
                                                                                
                 
                                                                                
     | {90512.324426408,60672.638245208}             | 151184.962671616 |       
        0 |      
           4 | 0.872087020146542 | -14509.9173954329
    3 | 
{{13.872,1.814,2.376,15.56,88.2,2.806,2.928,0.288,1.844,5.35198,1.044,3.348,988},{13.87,2.12666666666667,2.57666666666667,16.9333333333333,106,2.63333333333333,2.7566666
   
6666667,0.303333333333333,2.01333333333333,5.32663333333333,1.03666666666667,3.44333333333333,1256.66666666667},{14.285,1.855,2.475,16,112.5,3.56,3.44,0.29,2.075,7.275,0.955,
   3.15,1465}}                                                                  
     | {90512.324426408,8078.22646267333,452.7633}   | 99043.3141890813 |       
        0 |      
           3 | 0.895849874221733 |   24051.267625599
    4 | 
{{14.285,1.855,2.475,16,112.5,3.56,3.44,0.29,2.075,7.275,0.955,3.15,1465},{14.03,1.62,2.2525,14.2,80.75,2.8075,2.9875,0.2625,1.85,5.609975,1.045,3.4525,1051.25},{13.24,2
   
.59,2.87,21,118,2.8,2.69,0.39,1.82,4.32,1.04,2.93,735},{13.87,2.12666666666667,2.57666666666667,16.9333333333333,106,2.63333333333333,2.75666666666667,0.303333333333333,2.013
   
33333333333,5.32663333333333,1.03666666666667,3.44333333333333,1256.66666666667}}
 | {452.7633,9350.8411530075,0,8078.22646267333} | 17881.8309156808 |           
    0 |      
           2 | 0.941396037210154 |  47981.9140100655
    5 | 
{{13.16,2.36,2.67,18.6,101,2.8,3.24,0.3,2.81,5.6799,1.03,3.17,1185},{14.39,1.87,2.45,14.6,96,2.5,2.52,0.3,1.98,5.25,1.02,3.58,1290},{14.285,1.855,2.475,16,112.5,3.56,3.4
   
4,0.29,2.075,7.275,0.955,3.15,1465},{14.06,2.15,2.61,17.6,121,2.6,2.51,0.31,1.25,5.05,1.06,3.58,1295},{13.872,1.814,2.376,15.56,88.2,2.806,2.928,0.288,1.844,5.35198,1.044,3.3
   48,988}}                                                                     
     | {0,0,452.7633,0,90512.324426408}              |  90965.087726408 |       
        0 |      
           2 | 0.842533453115141 | -5209.80964753194
    6 | 
{{14.04,1.8225,2.435,16.65,110,2.845,2.97,0.295,1.985,5.594975,1.0425,3.3125,972.5},{14.2,1.76,2.45,15.2,112,3.27,3.39,0.34,1.97,6.75,1.05,2.85,1450},{14.225,2.01,2.53,1
   
6.1,108.5,2.55,2.515,0.305,1.615,5.15,1.04,3.58,1292.5},{13.16,2.36,2.67,18.6,101,2.8,3.24,0.3,2.81,5.6799,1.03,3.17,1185},{14.37,1.95,2.5,16.8,113,3.85,3.49,0.24,2.18,7.8,0.
   
86,3.45,1480},{13.2,1.78,2.14,11.2,1,2.65,2.76,0.26,1.28,4.38,1.05,3.49,1050}}  
  | {76176.4564000075,0,329.8988,0,0,0}           | 76506.3552000075 |          
     0 |      
           2 | 0.772762876324112 | -43770.9946685639
   (5 rows)
   
   ```
   and want to run `simple_silhouette_points()` for the case where `k=5` , say

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to