# NOT RUN {
library(modeldata)
data(biomass)
biomass_tr <- biomass[biomass$dataset == "Training",]
biomass_te <- biomass[biomass$dataset == "Testing",]
rec <- recipe(HHV ~ carbon + hydrogen + oxygen + nitrogen + sulfur,
data = biomass_tr)
transformed_te <- rec %>%
step_relu(carbon, shift = 40) %>%
prep(biomass_tr) %>%
bake(biomass_te)
transformed_te
# }
Run the code above in your browser using DataLab