cluster_partitionAroundMedoids: A class to perform Partition Around Medoids clustering on...

Description Usage Examples

Description

This class performs sequence clustering on an event-log with the Partition Around Medoids (PAM) algorithm. The public methods are:

In order to better undestand the use of such methods, please visit: www.pminer.info

Parameters for cluster_partitionAroundMedoids::calculateClusters() method are:

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Not run: 

# create a Loader 
obj.L<-dataLoader();   

# Load a .csv using "DES" and "ID" as column names to indicate events
# and Patient's ID
obj.L$load.csv(nomeFile = "../otherFiles/test_02.csv",
IDName = "ID",EVENTName = "DES",dateColumnName = "DATA")

# now create an object cluster_partitionAroundMedoids
obj.clPAM<- cluster_partitionAroundMedoids();

# load the data into logInspector object
obj.clPAM$loadDataset( obj.L$getData() );

# perform clustering computation
obj.clPAM$calculateClusters(num = 2);

# get calculated clusters
a <- obj.clPAM$getClusters();

# get informations about performance of clusters
b <- obj.clPAM$getClusterStats();

# get log of each iteration of the algorithm
d <- obj.clPAM$getClusterLog();

## End(Not run)

pMineR documentation built on May 2, 2019, 9:34 a.m.