Skip to content

Commit

Permalink
quick fix -- update mismatched function name
Browse files Browse the repository at this point in the history
  • Loading branch information
tabpeter committed Apr 19, 2024
1 parent 3bbfbaa commit 38e153c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions R/biglasso_path.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,34 +82,34 @@
#' X.bm <- as.big.matrix(X)
#' init <- rep(0, ncol(X)) # using cold starts - will need more iterations
#' r <- y - X%*%init
#' fit_lasso <- biglasso_simple_path(X = X.bm, y = y, r = r, init = init,
#' fit_lasso <- biglasso_path(X = X.bm, y = y, r = r, init = init,
#' xtx = rep(1, ncol(X)), lambda = c(0.5, 0.1, 0.05, 0.01, 0.001),
#' penalty.factor=c(0, rep(1, ncol(X)-1)),
#' max.iter = 10000)
#'
#' fit_mcp <- biglasso_simple_path(X = X.bm, y = y, r = r, init = init,
#' fit_mcp <- biglasso_path(X = X.bm, y = y, r = r, init = init,
#' xtx = rep(1, ncol(X)), lambda = c(0.5, 0.1, 0.05, 0.01, 0.001),
#' penalty.factor=c(0, rep(1, ncol(X)-1)),
#' max.iter = 10000, penalty= 'MCP')
#'
#' @export biglasso_path
biglasso_path <- function(X,
y,
r,
init=rep(0, ncol(X)),
xtx,
penalty = "lasso",
lambda,
alpha = 1,
gamma,
ncores = 1,
max.iter = 1000,
eps=1e-5,
dfmax = ncol(X)+1,
penalty.factor = rep(1, ncol(X)),
warn = TRUE,
output.time = FALSE,
return.time = TRUE) {
y,
r,
init=rep(0, ncol(X)),
xtx,
penalty = "lasso",
lambda,
alpha = 1,
gamma,
ncores = 1,
max.iter = 1000,
eps=1e-5,
dfmax = ncol(X)+1,
penalty.factor = rep(1, ncol(X)),
warn = TRUE,
output.time = FALSE,
return.time = TRUE) {

# set default gamma (will need this for cv.plmm)
if (missing(gamma)) gamma <- switch(penalty, SCAD = 3.7, 3)
Expand Down
4 changes: 2 additions & 2 deletions man/biglasso_path.Rd

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

0 comments on commit 38e153c

Please sign in to comment.