Last updated on 2025-12-12 19:50:33 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.1 | 8.13 | 79.20 | 87.33 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 1.0.1 | 5.35 | 63.28 | 68.63 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.0.1 | 13.00 | 124.97 | 137.97 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 1.0.1 | 13.00 | 133.41 | 146.41 | ERROR | |
| r-devel-windows-x86_64 | 1.0.1 | 9.00 | 82.00 | 91.00 | ERROR | |
| r-patched-linux-x86_64 | 1.0.1 | 7.85 | 74.40 | 82.25 | ERROR | |
| r-release-linux-x86_64 | 1.0.1 | 6.51 | 70.25 | 76.76 | ERROR | |
| r-release-macos-arm64 | 1.0.1 | 2.00 | 34.00 | 36.00 | OK | |
| r-release-macos-x86_64 | 1.0.1 | 5.00 | 151.00 | 156.00 | OK | |
| r-release-windows-x86_64 | 1.0.1 | 9.00 | 146.00 | 155.00 | OK | |
| r-oldrel-macos-arm64 | 1.0.1 | 2.00 | 40.00 | 42.00 | OK | |
| r-oldrel-macos-x86_64 | 1.0.1 | 6.00 | 168.00 | 174.00 | OK | |
| r-oldrel-windows-x86_64 | 1.0.1 | 13.00 | 103.00 | 116.00 | ERROR |
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[17:51:58] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7fe261a57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7fe261c98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7fe261f5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7fe261a4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7fe27dafa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7fe27db49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7fe27db31fcc]
[bt] (
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:04] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:05] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:05] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:06] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:06] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [17:52:07] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:07] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:08] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[17:52:08] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [17:52:10] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x57a84) [0x7f004da57a84]
[bt] (1) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(+0x298722) [0x7f004dc98722]
[bt] (2) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xdc) [0x7f004df5090c]
[bt] (3) /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x212) [0x7f004da4d972]
[bt] (4) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfa413) [0x7f0069efa413]
[bt] (5) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x149190) [0x7f0069f49190]
[bt] (6) /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x131fcc) [0x7f0069f31fcc]
[bt] (7) /home
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[13:26:54] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7fd14aa79ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7fd14ac80f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7fd14af4929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7fd14aa6f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7fd166106b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7fd1661445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7fd1661543ab]
[bt] (7) /home/hor
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [16s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:26:58] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:26:59] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:27:00] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:27:00] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:27:01] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [13:27:02] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:27:02] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:27:03] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[13:27:04] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [13:27:07] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79ae1) [0x7f5c25079ae1]
[bt] (1) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x280f7d) [0x7f5c25280f7d]
[bt] (2) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x13d) [0x7f5c2554929d]
[bt] (3) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x21b) [0x7f5c2506f5fb]
[bt] (4) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x106b6e) [0x7f5c40706b6e]
[bt] (5) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1445a0) [0x7f5c407445a0]
[bt] (6) /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libR.so(+0x1543ab) [0x7f5c407543ab]
[bt] (7) /home/hornik/tmp/
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[10:42:21] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7fc1ebe13b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7fc1ebf6c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7fc1ec1d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7fc1ebe096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x5610a62266f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x5610a6275470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x5610a625e2ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x5610a625da35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x5610a627ae29]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [19s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:38] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:39] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:39] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:40] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:41] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [10:42:42] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:42] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:43] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:44] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [10:42:47] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[21:36:05] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f7a8aa4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f7a8ac77988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f7a8af770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f7a8aa43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [37s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:36:29] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:36:32] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:36:38] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:36:44] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:36:48] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [21:36:50] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:36:55] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:37:02] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[21:37:08] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [21:37:28] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7fc224e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7fc225077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7fc2253770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7fc224e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1ad9]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6265]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3f7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1ffb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d75ee]
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in 'IBLM-Ex.R' failed
The error most likely occurred in:
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[08:47:11] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running 'testthat.R' [9s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:15] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:16] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:16] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:17] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:17] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [08:47:17] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:18] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:18] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[08:47:19] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [08:47:20] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[06:05:07] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f7067a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f7067c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f7067f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f7067a70405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f7082f0295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f7082f47213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f7082f4f136]
[bt]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-patched-linux-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [16s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:13] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:14] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:15] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:16] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:17] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [06:05:17] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:17] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:20] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[06:05:21] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [06:05:25] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f0065279e49]
[bt] (1) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f0065476a1d]
[bt] (2) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f006571ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f0065270405]
[bt] (4) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f008090295e]
[bt] (5) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x147213) [0x7f0080947213]
[bt] (6) /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f008094f136]
[bt] (7) /ho
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-patched-linux-x86_64
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in xgboost::xgb.DMatrix(data.matrix(data)) :
[05:53:41] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f4b19479e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f4b19676a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f4b1991ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f4b19470405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f4b34b0295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f4b34b47213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f4b34b4f136]
[bt]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-release-linux-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [13s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:47] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:47] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:48] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:49] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:50] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [05:53:51] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:51] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:53] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:53] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [05:53:56] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. ├─xgboost:::predict.xgb.Booster(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in 'IBLM-Ex.R' failed
The error most likely occurred in:
> ### Name: beta_corrected_density
> ### Title: Density Plot of Beta Corrections for a Variable
> ### Aliases: beta_corrected_density
>
> ### ** Examples
>
> # This function is created inside explain_iblm() and is output as an item
>
> df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000)
>
> iblm_model <- train_iblm_xgb(
+ df_list,
+ response_var = "ClaimRate",
+ family = "poisson"
+ )
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
>
> explain_objects <- explain_iblm(iblm_model, df_list$test)
Error in predict.xgb.Booster(booster_model, newdata = xgboost::xgb.DMatrix(data.matrix(data)), :
[09:32:10] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3764 vs. 30112) :
Calls: explain_iblm ... extract_booster_shap.xgb.Booster -> data.frame -> <Anonymous> -> predict.xgb.Booster
Execution halted
Flavor: r-oldrel-windows-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(IBLM)
>
> test_check("IBLM")
Saving _problems/test-explain_iblm-222.R
Saving _problems/test-explain_iblm-247.R
Saving _problems/test-explain_iblm-272.R
Saving _problems/test-explain_iblm-300.R
Saving _problems/test-explain_iblm-328.R
Saving _problems/test-explain_iblm-361.R
Saving _problems/test-explain_iblm-421.R
Saving _problems/test-explain_iblm-454.R
Saving _problems/test-explain_iblm-484.R
Saving _problems/test-predict-32.R
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3',
'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:16] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 10977) :
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:16] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 14636) :
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:17] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 18295) :
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:18] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 32931) :
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:18] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 18295) :
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `predict.xgb.Booster(booster_model, newdata = xgboost::xgb.DMatrix(data.matrix(data)), predcontrib = TRUE)`: [09:32:19] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) :
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. └─xgboost:::predict.xgb.Booster(...)
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:20] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) :
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:21] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) :
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[09:32:21] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) :
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `predict.xgb.Booster(booster_model, newdata = xgboost::xgb.DMatrix(data.matrix(data)), predcontrib = TRUE)`: [09:32:24] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) :
Backtrace:
▆
1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3
2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data)
3. └─IBLM:::extract_booster_shap.xgb.Booster(...)
4. ├─base::data.frame(...)
5. ├─stats::predict(...)
6. └─xgboost:::predict.xgb.Booster(...)
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.