topepo / user2018 Goto Github PK
View Code? Open in Web Editor NEWSlides and code for the 2018 useR! tutorial "Recipes for Data Processing"
License: GNU General Public License v2.0
Slides and code for the 2018 useR! tutorial "Recipes for Data Processing"
License: GNU General Public License v2.0
Hi,
I am facing a problem running the "assess_prediction" function from slide 41. It gives the following error when I map it to the cv_splits object
Error in mutate_impl(.data, dots) :
Evaluation error: No tidyselect variables were registered
Call `rlang::last_error()` to see a backtrace.
In addition: Warning message:
Please use `new_data` instead of `newdata` with `bake`.
In recipes versions >= 0.1.4, this will cause an error.
When I made a slight modification to the function by removing everything()
argument from bake()
as shown below
assess_predictions <- function(split_obj, rec_obj, mod_obj) {
raw_data <- assessment(split_obj)
proc_x <- bake(rec_obj, newdata = raw_data, all_predictors())
# Now save _all_ of the columns and add predictions.
bake(rec_obj, newdata = raw_data) %>%
mutate(
.fitted = predict(mod_obj, newdata = proc_x),
.resid = Sale_Price - .fitted, # Sale_Price is already logged by the recipe
# Save the original row number of the data
.row = as.integer(split_obj, data = "assessment")
)
}
the function worked fine!
Would you please help me interpret the error and why it only worked after removing everything()
?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.