R Under development (unstable) (2025-05-26 r88238 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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(TidyML) ************************************************** * * * TTTTTT dd MM MM LL * * TT ii dd yy yy MM M M MM LL * * TT ii dd dd y y MM M MM LL * * TT ii d dd yy MM MM LL * * TT ii dd dd yy MM MM LLLLLL * * * ************************************************** TidyML v0.1.0: **Start simple, scale smart** > > test_check("TidyML") Commencing Tuning...OMP: Warning #96: Cannot form a team with 48 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). ! validation: preprocessor 1/1, model 2/20: Loss is NaN at epoch 8. Training is stopped. ! validation: preprocessor 1/1, model 15/20: Loss is NaN at epoch 4. Training is stopped. ! No improvement for 5 iterations; returning current results. Tuning Finalized ###### Loss Curve ###### Commencing Tuning...Tuning Finalized ###### Loss Curve ###### Commencing Tuning...Commencing Tuning...! No improvement for 5 iterations; returning current results. Tuning Finalized ###### Loss Curve ###### ######### PFI Method Results ############## # A tibble: 7 x 3 Variable Importance StDev 1 depression 17.7 0.892 2 gender_Male 0.183 0.0806 3 gender_Female 0.100 0.111 4 socioec_status_High 0.0742 0.0192 5 socioec_status_Medium 0.0263 0.0430 6 age 0.00872 0.0777 7 socioec_status_Low -0.00207 0.0576 -- Starting `shapr::explain()` at 2025-05-27 14:19:54 -------------------------- i You passed a model to `shapr::explain()` which is not natively supported, and did not supply a `get_model_specs` function to `shapr::explain()`. Consistency checks between model and data is therefore disabled. -- Explanation overview -- * Model class: <_brulee_mlp/model_fit> * Approach: empirical * Iterative estimation: TRUE * Number of feature-wise Shapley values: 7 * Number of observations to explain: 200 * Computations (temporary) saved at: 'D:\temp\2025_05_27_13_55_17_158\RtmpKW6XyX\shapr_obj_3074478058b.rds' -- iterative computation started -- -- Iteration 1 ----------------------------------------------------------------- i Using 14 of 128 coalitions, 14 new. -- Iteration 2 ----------------------------------------------------------------- i Using 26 of 128 coalitions, 12 new. ######### SHAP Method Results ############## Importance StDev depression 16.400 0.720 age 1.690 0.084 gender_Male 0.591 0.026 socioec_status_Medium 0.557 0.024 socioec_status_Low 0.496 0.024 socioec_status_High 0.409 0.016 gender_Female 0.398 0.015 ######### Integrated Gradients Method Results ############## Importance StDev depression 0.70700 0.0310 gender_Male 0.06560 0.0048 gender_Female 0.06330 0.0048 age 0.04220 0.0037 socioec_status_Medium 0.01950 0.0019 socioec_status_Low 0.01850 0.0022 socioec_status_High 0.00722 0.0010 ######### Olden's Method Results ############## age depression gender_Female gender_Male socioec_status_High 1 0.04041123 -0.6511811 -0.08520333 -0.1051047 0.01565051 socioec_status_Low socioec_status_Medium 1 0.05885844 0.04359065 Commencing Tuning...! No improvement for 5 iterations; returning current results. Tuning Finalized ###### Loss Curve ###### ############# Showing Results ############# [ FAIL 1 | WARN 0 | SKIP 0 | PASS 193 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-sensitivity_analysis.R:31:3'): PFI works properly regression ── olden$depression[1] (`actual`) not equal to -0.7335 (`expected`). `actual`: -0.65 `expected`: -0.73 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 193 ] Error: Test failures Execution halted