Skip to content

Commit 7b2515c

Browse files
minor wordsmith fwd sel start
1 parent bbad134 commit 7b2515c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/classification2.Rmd

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,12 +1378,9 @@ Therefore we will continue the rest of this section using forward selection.
13781378

13791379
We now turn to implementing forward selection in R.
13801380
Unfortunately there is no built-in way to do this using the `tidymodels` framework,
1381-
so we will have to code it ourselves. First we will use the `select` function
1382-
to extract the "total" set of predictors that we are willing to work with.
1383-
Here we will load the modified version of the cancer data with irrelevant
1384-
predictors, and select `Smoothness`, `Concavity`, `Perimeter`, `Irrelevant1`, `Irrelevant2`, and `Irrelevant3`
1385-
as potential predictors, and the `Class` variable as the label.
1386-
We will also extract the column names for the full set of predictor variables.
1381+
so we will have to code it ourselves. First we will use the `select` function to extract a smaller set of predictors
1382+
to work with in this illustrative example—`Smoothness`, `Concavity`, `Perimeter`, `Irrelevant1`, `Irrelevant2`, and `Irrelevant3`—as
1383+
well as the `Class` variable as the label. We will also extract the column names for the full set of predictors.
13871384

13881385
```{r 06-fwdsel-seed, echo = FALSE, warning = FALSE, message = FALSE}
13891386
# hidden seed

0 commit comments

Comments
 (0)