hello: EWDPmeans

Description Usage Examples

Description

'This package is a clustering technique that can provide partitioning of data in an unsupervised way. The additional advantage of using this method is that the number of clusters are not required to known a-priori. This method is useful in clustering high-dimensional data since the entropy regularizer on feature weights provides a method of feature selection. The input requires a properly centred and scaled data-matrix in data.matrix form and additional parameters lambda_w, lambda_k and tmax. The output provides the number of clusters, feature weights and the cluster labels for each data-point.'

Usage

1
EWDPmeans(X, lambda_w=1, lambda_k=1, tmax=100)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  #Loading the data
  data(iris)
  X=iris
  X=data.matrix(X)
  toss=X[,5]
  X=X[,-5]
  #Centre and scale
  p=dim(X)[2]
  for(l in 1:p){
    X[,l]=(X[,l]-mean(X[,l]))/sd(X[,l])
  }
  #Run the code
  l=EWDPmeans(X,1,1,30)
  #Number of clusters
  l[[1]]
  #Feature weights
  l[[2]]
  #Cluster labels
  l[[3]]

DebolinaPaul/EWDP documentation built on July 5, 2020, 3:25 p.m.