Professional Documents
Culture Documents
SAP HANA PAL - K-Means Algorithm or How To Do Cust... - SAP Community-13
SAP HANA PAL - K-Means Algorithm or How To Do Cust... - SAP Community-13
SAP HANA PAL - K-Means Algorithm or How To Do Cust... - SAP Community-13
- SAP Community
"V006" DOUBLE,
"V007" DOUBLE
);
"INTARGS" INTEGER,
"DOUBLEARGS" DOUBLE,
);
After executing this code we should see a new procedure in the _SYS_AFL schema called PAL_KMEANS_TELCO
I generated the K-Means procedure so now I need to write the code that will execute it:
INSERT INTO PAL_CONTROL_TAB_TELCO VALUES ('NORMALIZATION',0,null,null); --> How to normalize the data. In
this case I'm not normalizing at all
assignment for each customer and the distance to the center of the cluster */
"ID" INT,
"CENTER_ASSIGN" INT,
"DISTANCE" DOUBLE,
primary key("ID")
);
/* This table will contain the resulting centers for each cluster */