Skip to content

Commit

Permalink
Merge pull request #24 from ocbe-uio/fix-regression
Browse files Browse the repository at this point in the history
Fix regression on `MADMMplasso()`
  • Loading branch information
Theo-qua authored Jan 26, 2024
2 parents 930790e + c8dfd2f commit e7a9592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: MADMMplasso
Title: Multi Variate Multi Response 'ADMM' with Interaction Effects
Version: 0.0.0.9009
Version: 0.0.0.9010
Authors@R:
c(
person(
Expand Down
4 changes: 2 additions & 2 deletions R/MADMMplasso.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ MADMMplasso <- function(X, Z, y, alpha, my_lambda = NULL, lambda_min = 0.001, ma
)
}
parallel::stopCluster(cl)
} else if (parallel && pal == 0) {
} else if (!parallel && pal == 0) {
my_values <- lapply(
seq_len(nlambda),
function(g) {
Expand Down Expand Up @@ -253,7 +253,7 @@ MADMMplasso <- function(X, Z, y, alpha, my_lambda = NULL, lambda_min = 0.001, ma
theta0 <- my_values[hh, ]$theta0 ### iteration
beta_hat <- my_values[hh, ]$beta_hat
y_hat <- my_values[hh, ]$y_hat
} else if (parallel && pal == 0) {
} else if (!parallel && pal == 0) {
beta <- my_values[[hh]]$beta
theta <- my_values[[hh]]$theta
my_obj[[hh]] <- list(my_values[[hh]]$obj)
Expand Down

0 comments on commit e7a9592

Please sign in to comment.