Professional Documents
Culture Documents
- SAP Community
"ID" INT,
"TYPENAME" VARCHAR(100),
"DIRECTION" VARCHAR(100) );
"INTARGS" INTEGER,
"DOUBLEARGS" DOUBLE,
);
INSERT INTO PAL_CONTROL_TAB_TELCO VALUES ('INIT_TYPE',4,null,null); --> This parameter will specify how to
select the initial center of each cluster
INSERT INTO PAL_CONTROL_TAB_TELCO VALUES ('DISTANCE_LEVEL',2,null,null); --> Which distance to use. In this
case I'm using Euclidean
As you can see, the distance goes dramatically down between 2 and 3, and after 3 the distance keeps going down but in a
smaller scale. So the “elbow” is clearly in cluster 3. This means that I should use 3 clusters to run the algorithm. So now I’m
going to run the algorithm again using the right number of clusters. This is the result:
The first column is the Customer ID and the second column is the cluster that has been assigned to that customer. So
based on how customers use their mobile phones, the K-Means algorithm clustered my customers in the following way: