KMeans clustering and weighted centroid analysis
This commit is contained in:
6
src/pg/test/sql/05_kmeans_test.sql
Normal file
6
src/pg/test/sql/05_kmeans_test.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
\pset format unaligned
|
||||
\set ECHO all
|
||||
|
||||
SELECT count(DISTINCT cluster_no) as clusters from cdb_crankshaft.cdb_kmeans('select * from ppoints', 2);
|
||||
|
||||
SELECT count(*) clusters from cdb_crankshaft.cdb_WeightedMean( 'select *, code::INTEGER as cluster from ppoints' , 'value', 'cluster' );
|
||||
Reference in New Issue
Block a user