SAP HANA PAL - K-Means Algorithm or How To Do Cust... - SAP Community-D

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

3/13/24, 9:42 PM SAP HANA PAL – K-Means Algorithm or How to do Cust...

- SAP Community

CREATE TYPE T_KMEANS_TYPE_ASSIGN_TELCO_S AS TABLE(

"ID" INTEGER,

"TYPE_ASSIGN" INTEGER

);

/* This is the type of the output parameter that will

show the silhouette score of the entire data set */

DROP TYPE T_KMEANS_RESULT_TELCO_S;

CREATE TYPE T_KMEANS_RESULT_TELCO_S AS TABLE(

"NAME" VARCHAR (50),

"S" DOUBLE

);

/* This is the type of the table that contains the input and output parameters */

DROP TYPE CONTROL_T_TELCO_S;

https://community.sap.com/t5/technology-blogs-by-members/sap-hana-pal-k-means-algorithm-or-how -to-do-customer-segmentation-for-the/ba-p/12976696/page/2 19/39


3/13/24, 9:42 PM SAP HANA PAL – K-Means Algorithm or How to do Cust... - SAP Community

CREATE TYPE CONTROL_T_TELCO_S AS TABLE(

"Name" VARCHAR(100),

"intArgs" INTEGER,

"doubleArgs" DOUBLE,

"strArgs" VARCHAR(100));

/* This is the table that contains the input and output tables */

DROP table PDATA_TELCO_S;

CREATE column table PDATA_TELCO_S(

"ID" INTEGER,

"TYPENAME" VARCHAR(100),

"DIRECTION" VARCHAR(100));

insert into PDATA_TELCO_S values (1,'_SYS_AFL.T_KMEANS_DATA_TELCO_S','in');

insert into PDATA_TELCO_S values (2,'_SYS_AFL.T_KMEANS_TYPE_ASSIGN_TELCO_S','in');

https://community.sap.com/t5/technology-blogs-by-members/sap-hana-pal-k-means-algorithm-or-how -to-do-customer-segmentation-for-the/ba-p/12976696/page/2 20/39

You might also like