Skip to content

Commit

Permalink
Added description to function (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed May 23, 2024
1 parent 28847ed commit 7160c1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#' @param my_print Should information form each ADMM iteration be printed along the way? Default TRUE. This prints the dual and primal residuals
#' @param gg penalty terms for the tree structure for lambda_1 and lambda_2 for the admm call.
#' @return predicted values for the ADMM part
#' @description TODO: add description
#' @description This function fits a multi-response pliable lasso model over a path of regularization values.
#' @export
admm_MADMMplasso_cpp <- function(beta0, theta0, beta, beta_hat, theta, rho1, X, Z, max_it, W_hat, XtY, y, N, e_abs, e_rel, alpha, lambda, alph, svd_w_tu, svd_w_tv, svd_w_d, C, CW, gg, my_print = TRUE) {
.Call(`_MADMMplasso_admm_MADMMplasso_cpp`, beta0, theta0, beta, beta_hat, theta, rho1, X, Z, max_it, W_hat, XtY, y, N, e_abs, e_rel, alpha, lambda, alph, svd_w_tu, svd_w_tv, svd_w_d, C, CW, gg, my_print)
Expand Down
2 changes: 1 addition & 1 deletion man/admm_MADMMplasso_cpp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/admm_MADMMplasso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
//' @param my_print Should information form each ADMM iteration be printed along the way? Default TRUE. This prints the dual and primal residuals
//' @param gg penalty terms for the tree structure for lambda_1 and lambda_2 for the admm call.
//' @return predicted values for the ADMM part
//' @description TODO: add description
//' @description This function fits a multi-response pliable lasso model over a path of regularization values.
//' @export
// [[Rcpp::export]]
arma::field<arma::cube> admm_MADMMplasso_cpp(
Expand Down Expand Up @@ -378,7 +378,6 @@ arma::field<arma::cube> admm_MADMMplasso_cpp(

// Return important values
arma::field<arma::cube> out(7);
// TODO: print all dimensions to make sure they are correct
out(0) = arma::cube(beta0.n_elem, 1, 1);
out(0).slice(0) = beta0;

Expand Down

0 comments on commit 7160c1e

Please sign in to comment.