{"action":"closed","issue":{"url":"https://api.github.com/repos/tidymodels/parsnip/issues/108","repository_url":"https://api.github.com/repos/tidymodels/parsnip","labels_url":"https://api.github.com/repos/tidymodels/parsnip/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/tidymodels/parsnip/issues/108/comments","events_url":"https://api.github.com/repos/tidymodels/parsnip/issues/108/events","html_url":"https://github.com/tidymodels/parsnip/issues/108","id":381978246,"node_id":"MDU6SXNzdWUzODE5NzgyNDY=","number":108,"title":"`multi_predict._multnet()` doesn't pull the right default `penalty`","user":{"login":"DavisVaughan","id":19150088,"node_id":"MDQ6VXNlcjE5MTUwMDg4","avatar_url":"https://avatars3.githubusercontent.com/u/19150088?v=4","gravatar_id":"","url":"https://api.github.com/users/DavisVaughan","html_url":"https://github.com/DavisVaughan","followers_url":"https://api.github.com/users/DavisVaughan/followers","following_url":"https://api.github.com/users/DavisVaughan/following{/other_user}","gists_url":"https://api.github.com/users/DavisVaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/DavisVaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavisVaughan/subscriptions","organizations_url":"https://api.github.com/users/DavisVaughan/orgs","repos_url":"https://api.github.com/users/DavisVaughan/repos","events_url":"https://api.github.com/users/DavisVaughan/events{/privacy}","received_events_url":"https://api.github.com/users/DavisVaughan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-18T16:54:04Z","updated_at":"2018-12-07T15:36:26Z","closed_at":"2018-12-07T15:36:26Z","author_association":"COLLABORATOR","body":"We are using `object$lambda` rather than `object$fit$lambda` and that causes:\r\n\r\n``` r\r\nlibrary(parsnip)\r\ndata(\"lending_club\")\r\n\r\nmulti_reg <- multinom_reg()\r\nmulti_reg_glmnet <- multi_reg %>% set_engine(\"glmnet\")\r\nmulti_reg_fit <- fit(multi_reg_glmnet, verification_status ~ annual_inc + sub_grade, data = lending_club)\r\n\r\nmulti_reg_fit %>%\r\n  multi_predict(new_data = lending_club, type = \"prob\", penalty = 0.01)\r\n#> # A tibble: 9,857 x 1\r\n#>    .pred           \r\n#>    <list>          \r\n#>  1 <tibble [1 × 4]>\r\n#>  2 <tibble [1 × 4]>\r\n#>  3 <tibble [1 × 4]>\r\n#>  4 <tibble [1 × 4]>\r\n#>  5 <tibble [1 × 4]>\r\n#>  6 <tibble [1 × 4]>\r\n#>  7 <tibble [1 × 4]>\r\n#>  8 <tibble [1 × 4]>\r\n#>  9 <tibble [1 × 4]>\r\n#> 10 <tibble [1 × 4]>\r\n#> # … with 9,847 more rows\r\n\r\nmulti_reg_fit %>%\r\n  multi_predict(new_data = lending_club, type = \"prob\")\r\n#> Error in arrange_impl(.data, dots): cannot arrange column of class 'NULL' at position 2\r\n```\r\n\r\nThis is the line that needs to be updated:\r\nhttps://github.com/tidymodels/parsnip/blob/master/R/logistic_reg.R#L286"}}
{"actor":{"display_login":"DavisVaughan"}}