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

3 tests fail on PowerPC: Not all penalty values in path(s), please refit xrnet() model with desired penalty values #41

Open
barracuda156 opened this issue Nov 1, 2023 · 0 comments

Comments

@barracuda156
Copy link

R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)

> Sys.setenv("R_TESTS" = "")
> library(testthat)
> library(xrnet)
> test_check("xrnet")
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 165 ]

══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-predict-function.R:22:5'): predict returns estimates for penalties already fit by xrnet object ──
Error in `predict.xrnet(xrnet_object, p = 1, pext = 0.05, type = "coefficients")`: Not all penalty values in path(s), please refit xrnet() model with desired penalty values
Backtrace:
    ▆
 1. ├─stats::predict(xrnet_object, p = 1, pext = 0.05, type = "coefficients") at test-predict-function.R:22:5
 2. └─xrnet:::predict.xrnet(xrnet_object, p = 1, pext = 0.05, type = "coefficients")
── Error ('test-predict-function.R:52:5'): predict returns right predictions for penalties already fit by xrnet object ──
Error in `predict.xrnet(xrnet_object, p = 1, pext = 0.1, newdata = xtest)`: Not all penalty values in path(s), please refit xrnet() model with desired penalty values
Backtrace:
    ▆
 1. ├─stats::predict(xrnet_object, p = 1, pext = 0.1, newdata = xtest) at test-predict-function.R:52:5
 2. └─xrnet:::predict.xrnet(xrnet_object, p = 1, pext = 0.1, newdata = xtest)
── Error ('test-predict-function.R:94:5'): predict returns right predictions for penalties already fit by xrnet object, no external data ──
Error in `predict.xrnet(xrnet_object, p = c(0.05, 1, 2), newdata = xtest)`: Not all penalty values in path(s), please refit xrnet() model with desired penalty values
Backtrace:
    ▆
 1. ├─stats::predict(xrnet_object, p = c(0.05, 1, 2), newdata = xtest) at test-predict-function.R:94:5
 2. └─xrnet:::predict.xrnet(xrnet_object, p = c(0.05, 1, 2), newdata = xtest)

[ FAIL 3 | WARN 0 | SKIP 0 | PASS 165 ]
Error: Test failures
Execution halted
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