Questions tagged [parsnip]

6 questions
3
votes
1 answer

How to save parsnip/agua based H2O object and retrieve it again

I have the following script using tidymodels' agua package: library(tidymodels) library(agua) library(ggplot2) theme_set(theme_bw()) h2o_start() data(concrete) set.seed(4595) concrete_split <- initial_split(concrete, strata =…
littleworth
  • 4,781
  • 6
  • 42
  • 76
1
vote
1 answer

Regression trees with tidymodels

When attempting to use Regression Trees, how do you determine if/ when to use tune_grid() versus fit_resamples()? I tried these two things: 1. using tune_grid tune_spec<- decision_tree(min_n= tune(), tree_depth= tune(), cost_complexity=tune()) %>%…
1
vote
1 answer

Update parsnip model parameters dynamically

Let's say I have a tibble like so: > mod_tbl # A tibble: 46 × 3 .parsnip_engine .parsnip_mode .parsnip_fns 1 lm regression linear_reg 2 brulee regression linear_reg …
MCP_infiltrator
  • 3,961
  • 10
  • 45
  • 82
1
vote
2 answers

How to extract predictors from parsnip fit object

I have the following prediction model: library(tidymodels) data(ames) set.seed(4595) data_split <- initial_split(ames, strata = "Sale_Price", prop = 0.75) ames_train <- training(data_split) ames_test <- testing(data_split) rec <-…
littleworth
  • 4,781
  • 6
  • 42
  • 76
0
votes
1 answer

Challenges using `tidymodels`, `parsnip`, and `workflows` for events/trials outcome

tidymodelRs out there! The Goal: reuse a recipe object for multiple modeling types (logistic, RF, etc). The Data: survey data that I have condensed to outcome_yes (numeric count of when something happened), outcome_no (numeric count of when that…
kyle-G
  • 51
  • 5
0
votes
1 answer

Using parsnip to call multinomial_naive_bayes

I want to use tidymodels to build a workflow for an NLP problem. I have a basic flow built in the traditional way using the naivebayes package, which basically feeds a document-term matrix (counts of terms occurring in each document) to the…
Tom Wagstaff
  • 1,443
  • 2
  • 13
  • 15