prclust-package: Penalized Regression Based Cluster Method

Description Details Author(s) References Examples

Description

Clustering analysis is widely used in many fields. Traditionally clustering is regarded as unsupervised learning for its lack of a class label or a quantitative response variable, which in contrast is present in supervised learning such as classification and regression. Here we formulate clustering as penalized regression with grouping pursuit. In addition to the novel use of a non-convex group penalty and its associated unique operating characteristics in the proposed clustering method, a main advantage of this formulation is its allowing borrowing some well established results in classification and regression, such as model selection criteria to select the number of clusters, a difficult problem in clustering analysis. In particular, we propose using the generalized cross-validation (GCV) based on generalized degrees of freedom (GDF) to select the number of clusters. we further develop this method by developing a more efficient algorithm for scalable computation as well as a new theory for PRclust. This algorithm, called DC-ADMM, combines difference of convex programming with the alternating direction method of multipliers (ADMM). This method is more efficient than the quadratic penalty algorithm used in Pan et al. (2013) due to the availability of closed-form updating formulas.

Details

Package: prclust
Type: Package
Version: 1.3
Date: 2016-12-12
License: GPL-2 | GPL-3

Author(s)

Chong Wu, Wei Pan
Maintainer: Chong Wu <wuxx0845@umn.edu>

References

Pan, W., Shen, X., & Liu, B. (2013). Cluster analysis: unsupervised learning via supervised learning with a non-convex penalty. Journal of Machine Learning Research, 14(1), 1865-1889.

Wu, C., Kwon, S., Shen, X., & Pan, W. (2016). A New Algorithm and Theory for Penalized Regression-based Clustering. Journal of Machine Learning Research, 17(188), 1-25.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## In default, we use DC-ADMM, a faster algorithm to solve 
## the objective function and get the clustering result.
library("prclust")
## generate the data
data = matrix(NA,2,100)
data[1,1:50] = rnorm(50,0,0.33)
data[2,1:50] = rnorm(50,0,0.33)
data[1,51:100] = rnorm(50,1,0.33)
data[2,51:100] = rnorm(50,1,0.33)

# clustering via PRclsut 
a =PRclust(data,lambda1=0.4,lambda2=1,tau=0.5)
a$mu
a$group

Example output

            [,1]        [,2]        [,3]        [,4]        [,5]        [,6]
[1,] -0.11039982 -0.10923778 -0.11099321 -0.11120373 -0.11036019 -0.11047364
[2,]  0.02012426  0.01762685  0.02092785  0.01959573  0.02049482  0.01966522
            [,7]        [,8]        [,9]       [,10]      [,11]       [,12]
[1,] -0.11027623 -0.11009693 -0.10968698 -0.10975043 -0.1104368 -0.11008753
[2,]  0.02020663  0.01996595  0.02020073  0.01985525  0.0205501  0.01961984
           [,13]       [,14]       [,15]      [,16]      [,17]       [,18]
[1,] -0.11068224 -0.11015030 -0.11040050 -0.1099448 -0.1101556 -0.10968948
[2,]  0.02029581  0.01966363  0.02023671  0.0200001  0.0203295  0.01996832
          [,19]       [,20]       [,21]      [,22]       [,23]       [,24]
[1,] -0.1107886 -0.11001273 -0.11034200 -0.1102166 -0.11041715 -0.11054504
[2,]  0.0201704  0.01985681  0.01997891  0.0199391  0.02048655  0.02009239
           [,25]       [,26]       [,27]       [,28]       [,29]      [,30]
[1,] -0.11042896 -0.11262439 -0.11074247 -0.11034281 -0.11073278 -0.1103841
[2,]  0.02005214  0.02051932  0.01980784  0.02009735  0.02132615  0.0202055
           [,31]       [,32]       [,33]       [,34]       [,35]     [,36]
[1,] -0.10915548 -0.11008267 -0.11014717 -0.11023125 -0.11032303 0.9998727
[2,]  0.01832469  0.01995273  0.01982926  0.01984796  0.01981085 1.0188955
           [,37]       [,38]       [,39]      [,40]       [,41]       [,42]
[1,] -0.11011743 -0.11054591 -0.11007407 -0.1102698 -0.11039018 -0.11023493
[2,]  0.02029208  0.02008974  0.02010215  0.0202225  0.01998727  0.02022527
           [,43]       [,44]       [,45]      [,46]       [,47]     [,48]
[1,] -0.11060948 -0.11011249 -0.11100950 -0.1100160 -0.11060465 0.9969772
[2,]  0.01971054  0.01953656  0.02090285  0.0203615  0.01965421 1.0089467
           [,49]       [,50]     [,51]     [,52]     [,53]     [,54]    [,55]
[1,] -0.11076367 -0.11028971 0.9980821 0.9980615 0.9980949 0.9981273 0.998081
[2,]  0.02028035  0.02021356 1.0102684 1.0102724 1.0102401 1.0103259 1.010253
         [,56]     [,57]     [,58]     [,59]     [,60]     [,61]     [,62]
[1,] 0.9981293 0.9980622 0.9980963 0.9981812 0.9981079 0.9980791 0.9981321
[2,] 1.0103047 1.0102696 1.0102464 1.0103464 1.0102318 1.0102692 1.0104590
         [,63]     [,64]     [,65]     [,66]     [,67]     [,68]    [,69]
[1,] 0.9981102 0.9980768 0.9980725 0.9980794 0.9980781 0.9980834 0.998067
[2,] 1.0102930 1.0102753 1.0102725 1.0102548 1.0102382 1.0102608 1.010254
         [,70]     [,71]     [,72]     [,73]     [,74]     [,75]     [,76]
[1,] 0.9986323 0.9978274 0.9980739 0.9980737 0.9982222 0.9980419 0.9980872
[2,] 1.0104225 1.0101024 1.0102617 1.0102634 1.0104130 1.0102726 1.0102513
       [,77]     [,78]     [,79]     [,80]     [,81]     [,82]     [,83]
[1,] 0.99830 0.9980763 0.9976225 0.9980819 0.9980421 0.9983171 0.9980808
[2,] 1.01084 1.0102742 1.0103269 1.0102771 1.0102330 1.0100460 1.0102373
         [,84]     [,85]     [,86]     [,87]     [,88]     [,89]     [,90]
[1,] 0.9981196 0.9982252 0.9980787 0.9981491 0.9980815 0.9980406 0.9981194
[2,] 1.0102464 1.0104749 1.0102751 1.0102855 1.0102302 1.0102526 1.0102389
         [,91]     [,92]     [,93]     [,94]     [,95]     [,96]    [,97]
[1,] 0.9980827 0.9980549 0.9983678 0.9980576 0.9980409 0.9977618 0.998071
[2,] 1.0102583 1.0102601 1.0100322 1.0102406 1.0101993 1.0102049 1.010270
         [,98]    [,99]    [,100]
[1,] 0.9980935 0.998069 0.9980834
[2,] 1.0102215 1.010232 1.0102481
  [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1
 [38] 1 1 1 1 1 1 1 1 1 1 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
 [75] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

prclust documentation built on May 2, 2019, 10:24 a.m.