Skip to content

Proper way to incorporate penalty.factor #20

@privefl

Description

@privefl

Two questions/remarks:

  1. I would have expected the same results (with rescaled lambda sequences)
data(colon); X.bm <- as.big.matrix(colon$X); y <- colon$y
fit.lasso  <- biglasso(X.bm, y, family = 'gaussian')
fit.lasso2 <- biglasso(X.bm, y, family = 'gaussian',
                       penalty.factor = rep(100, ncol(X.bm)))

Looking at the code of {glmnet}, it seems that they rescale the multiplicative factors (by dividing by their mean). Should {biglasso} do the same here?

  1. What is the (implementation) problem with having some penalty factor as 0? (you don't allow unpenalized variables in the current version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions