@@ -22,13 +22,13 @@ pmclust.reduceK <- function(K = 2, algorithm = .PMC.CT$algorithm){
22
22
pmclust.reduceK.spmd <- function (K = 2 , algorithm = .PMC.CT $ algorithm ){
23
23
# Get an initial start.
24
24
PARAM.org <- set.global(K = K )
25
- PARAM.org <- try(initial.em(PARAM.org ))
25
+ PARAM.org <- try(initial.em(PARAM.org ), silent = TRUE )
26
26
27
27
# Ensure the initial is good. Warning: This may take forever to run!
28
28
repeat {
29
29
if (class(PARAM.org ) == " try-error" ){
30
30
PARAM.org <- set.global(K = K )
31
- PARAM.org <- try(initial.em(PARAM.org ))
31
+ PARAM.org <- try(initial.em(PARAM.org ), silent = TRUE )
32
32
} else {
33
33
break
34
34
}
@@ -44,7 +44,7 @@ pmclust.reduceK.spmd <- function(K = 2, algorithm = .PMC.CT$algorithm){
44
44
if (comm.all(is.null(method.step ))){
45
45
comm.stop(" Algorithm is not found." )
46
46
}
47
- PARAM.new <- try(method.step(PARAM.org ))
47
+ PARAM.new <- try(method.step(PARAM.org ), silent = TRUE )
48
48
em.update.class()
49
49
N.CLASS <- get.N.CLASS(K )
50
50
@@ -80,7 +80,7 @@ pmclust.reduceK.spmd <- function(K = 2, algorithm = .PMC.CT$algorithm){
80
80
81
81
# Update steps.
82
82
e.step.spmd(PARAM.org )
83
- PARAM.new <- try(method.step(PARAM.org ))
83
+ PARAM.new <- try(method.step(PARAM.org ), silent = TRUE )
84
84
em.update.class()
85
85
N.CLASS <- get.N.CLASS(K )
86
86
} else {
0 commit comments