Remove _cdb_crankshaft_activate_py activation call from kmeans function
This commit is contained in:
parent
a222341863
commit
d08a2b6d2d
@ -1,8 +1,6 @@
|
||||
CREATE OR REPLACE FUNCTION CDB_KMeans(query text, no_clusters integer,no_init integer default 20)
|
||||
RETURNS table (cartodb_id integer, cluster_no integer) as $$
|
||||
|
||||
import plpy
|
||||
plpy.execute('SELECT cdb_crankshaft._cdb_crankshaft_activate_py()')
|
||||
from crankshaft.clustering import kmeans
|
||||
return kmeans(query,no_clusters,no_init)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user