Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improve error messaging in lasso functions #10

Open
timcadman opened this issue Apr 9, 2024 · 0 comments
Open

Improve error messaging in lasso functions #10

timcadman opened this issue Apr 9, 2024 · 0 comments

Comments

@timcadman
Copy link

Describe the bug
Often lasso functions (e.g. ds.LassoCov_CVInSite) fail with error messages which are quite hard to understand. For example:

$eden_nan [1] "Execution failed: 400 Bad Request: \"{\"status\":\"400\",\"key\":\"REvaluationRuntimeException\",\"args\":[],\"message\":\"Error in t(x) %*% x[, covar, drop = FALSE] : \\n requires numeric/complex matrix/vector arguments\\n\"}\""

$inma_gip [1] "Command 'glmDS1(Y_lm ~ fdens_trans_iqr_c + frich_trans_iqr_c + hdres_trans_iqr_c + \n indtr_trans_iqr_c + ldres_trans_iqr_c - 1, \"gaussian\", NULL, \n NULL, \"data_lm\")' failed on 'inma_gip': Error while evaluating 'dsBase::glmDS1(Y_lm~fdens_trans_iqr_c+frich_trans_iqr_c+hdres_trans_iqr_c+indtr_trans_iqr_c+ldres_trans_iqr_c-1, \"gaussian\", NULL, NULL, \"data_lm\")' -> Error in glm.fit(x = structure(numeric(0), dim = c(0L, 5L), dimnames = list( : \n object 'fit' not found\n"

Expected behavior
Error messages are returned providing more detail as to why the functions have failed. Perhaps what is required is additional checks before running the data, e.g. for missingness, data types, or other features of the data could cause Lasso to fail?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant