Print Covariate Drift Data Frame

# S3 method for covariate_drift
print(x, max_length = 25, ...)

Arguments

x

an object of the class `covariate_drift`

max_length

length of the first column, by default 25

...

other arguments, currently ignored

Value

this function prints a data frame with a nicer format

Examples

library("DALEX") # here we do not have any drift d <- calculate_covariate_drift(apartments, apartments_test) d
#> Variable Shift #> ------------------------------------- #> m2.price 4.9 #> construction.year 6.0 #> surface 6.8 #> floor 4.9 #> no.rooms 2.8 #> district 2.8
# here we do have drift d <- calculate_covariate_drift(dragons, dragons_test) d
#> Variable Shift #> ------------------------------------- #> year_of_birth 8.9 #> height 15.3 . #> weight 14.7 . #> scars 4.6 #> colour 17.9 . #> year_of_discovery 97.5 *** #> number_of_lost_teeth 6.3 #> life_length 8.6