R Under development (unstable) (2025-07-26 r88458 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. > library(testthat) > library(DALEX) Welcome to DALEX (version: 2.5.2). Find examples and detailed introduction at: http://ema.drwhy.ai/ Additional features will be available after installation of: ggpubr. Use 'install_dependencies()' to get all suggested dependencies > > test_check("DALEX") Package: ranger Package version: 0.17.0 Task type: regressionModel label: ranger Model class: ranger Data head : construction.year surface floor no.rooms district 1 1953 25 3 1 Srodmiescie 2 1992 143 9 5 Bielany m2.price construction.year surface floor Min. :1607 Min. :1920 Min. : 20.00 Min. : 1.000 1st Qu.:2857 1st Qu.:1943 1st Qu.: 53.00 1st Qu.: 3.000 Median :3386 Median :1965 Median : 85.50 Median : 6.000 Mean :3487 Mean :1965 Mean : 85.59 Mean : 5.623 3rd Qu.:4018 3rd Qu.:1988 3rd Qu.:118.00 3rd Qu.: 8.000 Max. :6595 Max. :2010 Max. :150.00 Max. :10.000 no.rooms district y y_hat Min. :1.00 Mokotow :107 Min. :1607 Min. :1846 1st Qu.:2.00 Wola :106 1st Qu.:2857 1st Qu.:2937 Median :3.00 Ursus :105 Median :3386 Median :3414 Mean :3.36 Ursynow :103 Mean :3487 Mean :3490 3rd Qu.:4.00 Srodmiescie:100 3rd Qu.:4018 3rd Qu.:3954 Max. :6.00 Bemowo : 98 Max. :6595 Max. :6181 (Other) :381 residuals abs_residuals label ids Min. :-420.473 Min. : 0.1609 Length:1000 Min. : 1.0 1st Qu.: -90.444 1st Qu.: 38.0328 Class :character 1st Qu.: 250.8 Median : -26.320 Median : 83.0169 Mode :character Median : 500.5 Mean : -2.738 Mean :107.0496 Mean : 500.5 3rd Qu.: 64.181 3rd Qu.:150.8097 3rd Qu.: 750.2 Max. : 574.191 Max. :574.1910 Max. :1000.0 surface construction.year y y_hat Min. : 20.00 Min. :1920 Min. :1607 Min. :1846 1st Qu.: 53.00 1st Qu.:1943 1st Qu.:2857 1st Qu.:2937 Median : 85.50 Median :1965 Median :3386 Median :3414 Mean : 85.59 Mean :1965 Mean :3487 Mean :3490 3rd Qu.:118.00 3rd Qu.:1988 3rd Qu.:4018 3rd Qu.:3954 Max. :150.00 Max. :2010 Max. :6595 Max. :6181 residuals abs_residuals label ids Min. :-420.473 Min. : 0.1609 Length:1000 Min. : 1.0 1st Qu.: -90.444 1st Qu.: 38.0328 Class :character 1st Qu.: 250.8 Median : -26.320 Median : 83.0169 Mode :character Median : 500.5 Mean : -2.738 Mean :107.0496 Mean : 500.5 3rd Qu.: 64.181 3rd Qu.:150.8097 3rd Qu.: 750.2 Max. : 574.191 Max. :574.1910 Max. :1000.0 m2.price construction.year surface floor Min. :1607 Min. :1920 Min. : 20.00 Min. : 1.000 1st Qu.:2857 1st Qu.:1943 1st Qu.: 53.00 1st Qu.: 3.000 Median :3386 Median :1965 Median : 85.50 Median : 6.000 Mean :3487 Mean :1965 Mean : 85.59 Mean : 5.623 3rd Qu.:4018 3rd Qu.:1988 3rd Qu.:118.00 3rd Qu.: 8.000 Max. :6595 Max. :2010 Max. :150.00 Max. :10.000 no.rooms district y y_hat Min. :1.00 Mokotow :107 Min. :1607 Min. :1846 1st Qu.:2.00 Wola :106 1st Qu.:2857 1st Qu.:2937 Median :3.00 Ursus :105 Median :3386 Median :3414 Mean :3.36 Ursynow :103 Mean :3487 Mean :3490 3rd Qu.:4.00 Srodmiescie:100 3rd Qu.:4018 3rd Qu.:3954 Max. :6.00 Bemowo : 98 Max. :6595 Max. :6181 (Other) :381 residuals abs_residuals label ids Min. :-420.473 Min. : 0.1609 Length:1000 Min. : 1.0 1st Qu.: -90.444 1st Qu.: 38.0328 Class :character 1st Qu.: 250.8 Median : -26.320 Median : 83.0169 Mode :character Median : 500.5 Mean : -2.738 Mean :107.0496 Mean : 500.5 3rd Qu.: 64.181 3rd Qu.:150.8097 3rd Qu.: 750.2 Max. : 574.191 Max. :574.1910 Max. :1000.0 The number of important variables for ranger's prediction is 3 out of 6. Variables district, surface, floor have the highest importantance. Preparation of a new explainer is initiated -> model label : ranger (  default  ) -> data : 7847 rows 6 cols -> target variable : 7847 values -> predict function : yhat.ranger will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) -> model_info : package ranger , ver. 0.17.0 , task multiclass (  default  ) -> predicted values : predict function returns multiple columns: 3 (  default  ) -> residual function : difference between 1 and probability of true class (  default  ) -> residuals : numerical, min = 0.001165526 , mean = 0.2775498 , max = 0.878992  A new explainer has been created!  Measures for: regression mse : 79358.95 rmse : 281.7072 r2 : 0.900389 mad : 211.999 Residuals: 0% 10% 20% 30% 40% 50% 60% 70% -249.1437 -223.8050 -208.7184 -195.0442 -184.4288 -175.5123 -161.8545 366.1237 80% 90% 100% 396.9122 424.0089 470.8357 Top profiles : _vname_ _label_ _x_ _yhat_ _ids_ 1 age ranger 0.1666667 0.5436573 0 2 age ranger 2.0000000 0.5985096 0 3 age ranger 4.0000000 0.5846253 0 4 age ranger 7.0000000 0.5555875 0 5 age ranger 9.0000000 0.5308816 0 6 age ranger 13.0000000 0.4617168 0 Top profiles : _vname_ _label_ _x_ _yhat_ _ids_ 1 age lm 20.00389 0.3957785 0 2 age lm 20.35994 0.3956848 0 3 age lm 20.70936 0.3955928 0 4 age lm 21.09156 0.3954920 0 5 age lm 21.41847 0.3954057 0 6 age lm 21.85549 0.3952902 0 Asymptotic two-sample Kolmogorov-Smirnov test data: residuals_other and residuals_sel D = 0.53732, p-value = 1.113e-12 alternative hypothesis: two-sided Top profiles : construction.year surface floor no.rooms district _yhat_ _vname_ _ids_ 1 1953 20 3 1 Srodmiescie 6112.597 surface 1 1.1 1953 22 3 1 Srodmiescie 6092.121 surface 1 1.2 1953 23 3 1 Srodmiescie 6081.883 surface 1 1.3 1953 24 3 1 Srodmiescie 6071.645 surface 1 1.4 1953 26 3 1 Srodmiescie 6051.170 surface 1 1.5 1953 27 3 1 Srodmiescie 6040.932 surface 1 _label_ 1 lm 1.1 lm 1.2 lm 1.3 lm 1.4 lm 1.5 lm Top observations: construction.year surface floor no.rooms district _yhat_ _label_ _ids_ 1 1953 25 3 1 Srodmiescie 6061.407 lm 1 [ FAIL 0 | WARN 10 | SKIP 8 | PASS 303 ] ══ Skipped tests (8) ═══════════════════════════════════════════════════════════ • On CRAN (8): 'test_yhat_model_info.R:14:3', 'test_yhat_model_info.R:43:3', 'test_yhat_model_info.R:72:3', 'test_yhat_model_info.R:97:3', 'test_yhat_model_info.R:146:3', 'test_yhat_model_info.R:180:3', 'test_yhat_model_info.R:232:3', 'test_yhat_model_info.R:257:3' [ FAIL 0 | WARN 10 | SKIP 8 | PASS 303 ] > > proc.time() user system elapsed 59.84 7.06 50.79