Running 'testthat.R' [263s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DALEX)
  Welcome to DALEX (version: 2.4.3).
  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.16.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.   :1866  
   1st Qu.:2.00   Wola       :106   1st Qu.:2857   1st Qu.:2935  
   Median :3.00   Ursus      :105   Median :3386   Median :3414  
   Mean   :3.36   Ursynow    :103   Mean   :3487   Mean   :3488  
   3rd Qu.:4.00   Srodmiescie:100   3rd Qu.:4018   3rd Qu.:3943  
   Max.   :6.00   Bemowo     : 98   Max.   :6595   Max.   :6145  
                  (Other)    :381                                
     residuals        abs_residuals         label                ids        
   Min.   :-401.503   Min.   :  0.1291   Length:1000        Min.   :   1.0  
   1st Qu.: -90.424   1st Qu.: 38.7126   Class :character   1st Qu.: 250.8  
   Median : -26.290   Median : 80.6531   Mode  :character   Median : 500.5  
   Mean   :  -1.044   Mean   :106.8413                      Mean   : 500.5  
   3rd Qu.:  63.142   3rd Qu.:148.8671                      3rd Qu.: 750.2  
   Max.   : 592.790   Max.   :592.7904                      Max.   :1000.0  
                                                                            
      surface       construction.year       y            y_hat     
   Min.   : 20.00   Min.   :1920      Min.   :1607   Min.   :1866  
   1st Qu.: 53.00   1st Qu.:1943      1st Qu.:2857   1st Qu.:2935  
   Median : 85.50   Median :1965      Median :3386   Median :3414  
   Mean   : 85.59   Mean   :1965      Mean   :3487   Mean   :3488  
   3rd Qu.:118.00   3rd Qu.:1988      3rd Qu.:4018   3rd Qu.:3943  
   Max.   :150.00   Max.   :2010      Max.   :6595   Max.   :6145  
     residuals        abs_residuals         label                ids        
   Min.   :-401.503   Min.   :  0.1291   Length:1000        Min.   :   1.0  
   1st Qu.: -90.424   1st Qu.: 38.7126   Class :character   1st Qu.: 250.8  
   Median : -26.290   Median : 80.6531   Mode  :character   Median : 500.5  
   Mean   :  -1.044   Mean   :106.8413                      Mean   : 500.5  
   3rd Qu.:  63.142   3rd Qu.:148.8671                      3rd Qu.: 750.2  
   Max.   : 592.790   Max.   :592.7904                      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.   :1866  
   1st Qu.:2.00   Wola       :106   1st Qu.:2857   1st Qu.:2935  
   Median :3.00   Ursus      :105   Median :3386   Median :3414  
   Mean   :3.36   Ursynow    :103   Mean   :3487   Mean   :3488  
   3rd Qu.:4.00   Srodmiescie:100   3rd Qu.:4018   3rd Qu.:3943  
   Max.   :6.00   Bemowo     : 98   Max.   :6595   Max.   :6145  
                  (Other)    :381                                
     residuals        abs_residuals         label                ids        
   Min.   :-401.503   Min.   :  0.1291   Length:1000        Min.   :   1.0  
   1st Qu.: -90.424   1st Qu.: 38.7126   Class :character   1st Qu.: 250.8  
   Median : -26.290   Median : 80.6531   Mode  :character   Median : 500.5  
   Mean   :  -1.044   Mean   :106.8413                      Mean   : 500.5  
   3rd Qu.:  63.142   3rd Qu.:148.8671                      3rd Qu.: 750.2  
   Max.   : 592.790   Max.   :592.7904                      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  ( [33m default [39m )
    -> data              :  7847  rows  6  cols 
    -> target variable   :  7847  values 
    -> predict function  :  yhat.ranger  will be used ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package ranger , ver. 0.16.0 , task multiclass ( [33m default [39m ) 
    -> predicted values  :  predict function returns multiple columns:  3  ( [33m default [39m ) 
    -> residual function :  difference between 1 and probability of true class ( [33m default [39m )
    -> residuals         :  numerical, min =  0.0002105263 , mean =  0.2789205 , max =  0.8769544  
   [32m A new explainer has been created! [39m 
  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.5198743     0
  2     age  ranger  2.0000000 0.5868364     0
  3     age  ranger  4.0000000 0.5899059     0
  4     age  ranger  7.0000000 0.5277261     0
  5     age  ranger  9.0000000 0.5231207     0
  6     age  ranger 13.0000000 0.4890563     0
  Top profiles    : 
    _vname_ _label_      _x_    _yhat_ _ids_
  1     age      lm 20.00389 0.3877489     0
  2     age      lm 20.35994 0.3876511     0
  3     age      lm 20.70936 0.3875552     0
  4     age      lm 21.09156 0.3874506     0
  5     age      lm 21.41847 0.3873612     0
  6     age      lm 21.85549 0.3872420     0
  
  	Asymptotic two-sample Kolmogorov-Smirnov test
  
  data:  residuals_other and residuals_sel
  D = 0.48354, p-value = 2.381e-10
  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 243 ]
  
  ══ 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 243 ]
  > 
  > proc.time()
     user  system elapsed 
   121.17   78.15  101.84