You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classification1.Rmd
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1320,7 +1320,7 @@ formula `Class ~ Area + Smoothness` (instead of `Class ~ .`) in the recipe.
1320
1320
You will also notice that we did not call `prep()` on the recipe; this is unnecessary when it is
1321
1321
placed in a workflow.
1322
1322
1323
-
We will now place these steps in a `workflow` using the `add_recipe` and `add_model` functions,\index{tidymodels!add\_recipe}\index{tidymodels!add\_model}
1323
+
We will now place these steps in a `workflow` using the `add_recipe` and `add_model` functions,\index{tidymodels!add\_recipe}\index{tidymodels!add\_model}
1324
1324
and finally we will use the `fit` function to run the whole workflow on the `unscaled_cancer` data.
1325
1325
Note another difference from earlier here: we do not include a formula in the `fit` function. This \index{tidymodels!fit}
1326
1326
is again because we included the formula in the recipe, so there is no need to respecify it:
@@ -1364,6 +1364,8 @@ The basic idea is to create a grid of synthetic new observations using the `expa
1364
1364
predict the label of each, and visualize the predictions with a colored scatter having a very high transparency
1365
1365
(low `alpha` value) and large point radius. See if you can figure out what each line is doing!
1366
1366
1367
+
\pagebreak
1368
+
1367
1369
> **Note:** Understanding this code is not required for the remainder of the
1368
1370
> textbook. It is included for those readers who would like to use similar
0 commit comments