mlr-org / paradox

ParamHelpers Next Generation
https://paradox.mlr-org.com
GNU Lesser General Public License v3.0
28 stars 7 forks source link

tunetoken format printer should give more info #403

Open mb706 opened 4 months ago

mb706 commented 4 months ago
lrn("classif.rpart", minbucket = to_tune(2, 10))$param_set
#> <ParamSet(10)>
#>                 id    class lower upper nlevels        default               value
#>             <char>   <char> <num> <num>   <num>         <list>              <list>
#>  1:             cp ParamDbl     0     1     Inf           0.01                    
#>  2:     keep_model ParamLgl    NA    NA       2          FALSE                    
#>  3:     maxcompete ParamInt     0   Inf     Inf              4                    
#>  4:       maxdepth ParamInt     1    30      30             30                    
#>  5:   maxsurrogate ParamInt     0   Inf     Inf              5                    
#>  6:      minbucket ParamInt     1   Inf     Inf <NoDefault[0]> <RangeTuneToken[2]>
#>  7:       minsplit ParamInt     1   Inf     Inf             20                    
#>  8: surrogatestyle ParamInt     0     1       2              0                    
#>  9:   usesurrogate ParamInt     0     2       3              2                    
#> 10:           xval ParamInt     0   Inf     Inf             10                   0

Instead, show <to_tune(2, 10)> or something like that, ideally also with logscale info