X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=reports%2Faccuracy.R;h=535f88f6299fa3f45d18685fac17b673d776b477;hb=778a955e6830f48306f2e35322440c5f9a0adaf3;hp=91d9c61634a34bf3e75d8e33b42d01e65b735781;hpb=0ad4c8de650e9f27ec3754c9cb9b2a03db5aff24;p=morpheus.git diff --git a/reports/accuracy.R b/reports/accuracy.R index 91d9c61..535f88f 100644 --- a/reports/accuracy.R +++ b/reports/accuracy.R @@ -13,11 +13,10 @@ optimBeta <- function(N, n, K, p, beta, b, link, weights, ncores) mu <- computeMu(fargs$X, fargs$Y, fargs$optargs) op <- optimParams(K,fargs$optargs$link,fargs$optargs) x_init <- list(p=rep(1/K,K-1), beta=mu, b=rep(0,K)) + res2 <- NULL tryCatch({ res2 <- do.call(rbind, op$run(x_init)) - }, error = function(e) { - res2 <- NA - }) + }, error = function(e) {}) res2 } # ,