mlr-org / mlr3learners

Recommended learners for mlr3
https://mlr3learners.mlr-org.com
GNU Lesser General Public License v3.0
91 stars 16 forks source link

Some warnings when running tests: `WARN [00:25:41.591] [mlr3] train: glm.fit: algorithm did not converge` etc. [ FAIL 0 | WARN 0 | SKIP 3 | PASS 550 ] #295

Closed barracuda156 closed 3 months ago

barracuda156 commented 5 months ago

There are some warnings when running tests:

R version 4.4.0 (2024-04-24) -- "Puppy Cup"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)

> if (requireNamespace("testthat", quietly = TRUE)) {
+   library("testthat")
+   library("mlr3learners")
+   test_check("mlr3learners")
+ }
Loading required package: mlr3
WARN  [00:23:20.100] [mlr3] train: one multinomial or binomial class has fewer than 8  observations; dangerous ground
WARN  [00:23:20.230] [mlr3] train: one multinomial or binomial class has fewer than 8  observations; dangerous ground
WARN  [00:23:20.890] [mlr3] train: one multinomial or binomial class has fewer than 8  observations; dangerous ground
WARN  [00:23:20.893] [mlr3] train: one multinomial or binomial class has fewer than 8  observations; dangerous ground
WARN  [00:23:24.057] [mlr3] train: one multinomial or binomial class has fewer than 8  observations; dangerous ground
WARN  [00:25:41.591] [mlr3] train: glm.fit: algorithm did not converge
WARN  [00:25:41.594] [mlr3] train: glm.fit: fitted probabilities numerically 0 or 1 occurred
WARN  [00:25:41.771] [mlr3] train: glm.fit: algorithm did not converge
WARN  [00:25:41.775] [mlr3] train: glm.fit: fitted probabilities numerically 0 or 1 occurred
WARN  [00:25:41.972] [mlr3] train: glm.fit: algorithm did not converge
WARN  [00:25:41.975] [mlr3] train: glm.fit: fitted probabilities numerically 0 or 1 occurred
WARN  [00:25:42.254] [mlr3] train: glm.fit: algorithm did not converge
WARN  [00:25:42.257] [mlr3] train: glm.fit: fitted probabilities numerically 0 or 1 occurred
WARN  [00:25:42.515] [mlr3] train: glm.fit: algorithm did not converge
WARN  [00:25:42.518] [mlr3] train: glm.fit: fitted probabilities numerically 0 or 1 occurred
WARN  [00:25:42.686] [mlr3] train: glm.fit: algorithm did not converge
WARN  [00:25:42.689] [mlr3] train: glm.fit: fitted probabilities numerically 0 or 1 occurred
# weights:  18 (10 variable)
initial  value 164.791843 
iter  10 value 16.177348
iter  20 value 7.111438
iter  30 value 6.182999
iter  40 value 5.984028
iter  50 value 5.961278
iter  60 value 5.954900
iter  70 value 5.951851
iter  80 value 5.950343
iter  90 value 5.949904
iter 100 value 5.949867
final  value 5.949867 
stopped after 100 iterations
[ FAIL 0 | WARN 0 | SKIP 3 | PASS 550 ]

══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test_classif_nnet.R:2:1', 'test_classif_xgboost.R:2:1',
  'test_regr_xgboost.R:2:1'

[ FAIL 0 | WARN 0 | SKIP 3 | PASS 550 ]
> 
> proc.time()
   user  system elapsed 
230.368   6.129 240.052 

Are these normal or of concern?

sebffischer commented 3 months ago

These logged warnings are not an issue when running tests. (you should care when the warning at the bottom is non-zero, but it currently is:

[ FAIL 0 | WARN 0 | SKIP 3 | PASS 550 ]
barracuda156 commented 3 months ago

@sebffischer Thank you, then all good.