Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not a single variable selected when kappa is large #1

Open
yifei-liu-stat opened this issue Aug 20, 2022 · 1 comment
Open

Not a single variable selected when kappa is large #1

yifei-liu-stat opened this issue Aug 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yifei-liu-stat
Copy link

yifei-liu-stat commented Aug 20, 2022

I encountered an issue when using glmtlp() for a single run. I got output named integer(0), but neither a warning nor an error was produced. To replicate this issue, run the following codes:

library(glmtlp)

set.seed(1234)
n <- 100
p <- 300
rho <- 0.3
kappa0 <- 10
# snr = 17 ensures that sigma is about 1 as absolute noise level
gau_data <- gen_gaussian_data(n, p, rho, kappa0, beta_type = 2, snr = 17)

fit_raw <- glmtlp(
    gau_data$X, gau_data$y, family = "gaussian",
    method = "tlp-constrained", kappa = 40
)

selection <- which(abs(fit_raw$beta[, 2]) > 0) 
selection # none selected
@chunlinli
Copy link
Owner

I update a temporary fix to this issue. However, this is related to determining reasonable range of hyper-parameter--it needs more thorough investigation.

@chunlinli chunlinli pinned this issue Aug 22, 2022
@chunlinli chunlinli added the bug Something isn't working label Sep 3, 2022
@chunlinli chunlinli unpinned this issue Sep 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants