X-Git-Url: https://git.auder.net/?p=morpheus.git;a=blobdiff_plain;f=reports%2Faccuracy.R;h=535f88f6299fa3f45d18685fac17b673d776b477;hp=91d9c61634a34bf3e75d8e33b42d01e65b735781;hb=01bd5c5b56b403b5487e232603643307d3821ed0;hpb=8dc8da95179d0f0654b5cb9e189117197aec7c55 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 } # ,