holub008 / xrf

eXtreme RuleFit (sparse linear models on XGBoost ensembles)
Other
43 stars 13 forks source link

quiet name repair `colnames` message #21

Closed simonpcouch closed 2 years ago

simonpcouch commented 2 years ago

Thanks again for your work on this package!

A small PR to quiet some dplyr messages about column name repair.

Previously:

data("ames", package = "modeldata")

xrf::xrf(
  Sale_Price ~ Neighborhood + Gr_Liv_Area + Central_Air,
  data = ames,
  family = "gaussian",
  xgb_control = list(nrounds = 3, max_depth = 3),
  verbose = 0
)
#> New names:
#> • `.` -> `....1`
#> • `.` -> `....2`
#> • `.` -> `....3`
#> • `.` -> `....4`
#> • `.` -> `....5`
#> • `.` -> `....6`
#> • `.` -> `....7`
#> • `.` -> `....8`
#> • `.` -> `....9`
#> • `.` -> `....10`
#> • `.` -> `....11`
#> • `.` -> `....12`
#> • `.` -> `....13`
#> • `.` -> `....14`
#> • `.` -> `....15`
#> • `.` -> `....16`
#> • `.` -> `....17`
#> • `.` -> `....18`
#> • `.` -> `....19`
#> • `.` -> `....20`
#> • `.` -> `....21`
#> • `.` -> `....22`
#> • `.` -> `....23`
#> • `.` -> `....24`
#> An eXtreme RuleFit model of 24 rules.
#> 
#> Original Formula:
#> 
#> Sale_Price ~ Neighborhood + Gr_Liv_Area + Central_Air

Created on 2022-06-05 by the reprex package (v2.0.1)

Now:

data("ames", package = "modeldata")

xrf::xrf(
  Sale_Price ~ Neighborhood + Gr_Liv_Area + Central_Air,
  data = ames,
  family = "gaussian",
  xgb_control = list(nrounds = 3, max_depth = 3),
  verbose = 0
)
#> An eXtreme RuleFit model of 24 rules.
#> 
#> Original Formula:
#> 
#> Sale_Price ~ Neighborhood + Gr_Liv_Area + Central_Air

Created on 2022-06-05 by the reprex package (v2.0.1)

simonpcouch commented 2 years ago

Closes https://github.com/tidymodels/rules/issues/59.

holub008 commented 2 years ago

Thanks @simonpcouch, looks good!