
Print number of predictors and area-of-applicability threshold
Source:R/area_of_applicability.R
print.ww_area_of_applicability.Rd
Print number of predictors and area-of-applicability threshold
Arguments
- x
A
ww_area_of_applicability
object.- digits
The number of digits to print, used when rounding the AOA threshold.
- ...
These dots are for future extensions and must be empty.
Examples
library(vip)
trn <- gen_friedman(500, seed = 101) # ?vip::gen_friedman
pp <- ppr(y ~ ., data = trn, nterms = 11)
importance <- vi_permute(
pp,
target = "y",
metric = "rsquared",
pred_wrapper = predict
)
ww_area_of_applicability(trn[2:11], importance = importance)
#> # Predictors:
#> 10
#> Area-of-applicability threshold:
#> 0.3457622