Skip to content

Commit 85e6b0b

Browse files
index bugfixing
1 parent e9bbc01 commit 85e6b0b

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

source/classification2.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,9 @@ functionality, named `GridSearchCV`, to automatically handle the details for us.
11801180
Before we use `GridSearchCV`, we need to create a new pipeline
11811181
with a `KNeighborsClassifier` that has the number of neighbors left unspecified.
11821182

1183-
```{index} make_pipeline
1183+
```{index} see: make_pipeline; scikit-learn
1184+
```
1185+
```{index} scikit-learn;make_pipeline
11841186
```
11851187

11861188
```{code-cell} ipython3
@@ -1670,7 +1672,7 @@ Overview of K-NN classification.
16701672

16711673
+++
16721674

1673-
```{index} scikit-learn, Pipeline, cross-validation, K-nearest neighbors; classification, classification
1675+
```{index} scikit-learn;Pipeline, cross-validation, K-nearest neighbors; classification, classification
16741676
```
16751677

16761678
The overall workflow for performing K-nearest neighbors classification using `scikit-learn` is as follows:

source/reading.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,10 @@ canlang_table = conn.table("can_lang")
685685
canlang_table
686686
```
687687

688-
```{index} count, ibis; count
688+
```{index} ibis; count
689+
```
690+
691+
```{index} see: count; ibis
689692
```
690693

691694
Although it looks like we might have obtained the whole data frame from the database, we didn't!
@@ -721,7 +724,9 @@ the *actual* text of the SQL query that `ibis` sends to the database, you can us
721724
instead of `execute`. But note that you have to pass the result of `compile` to the `str` function to turn it into
722725
a human-readable string first.
723726

724-
```{index} compile, ibis; compile, str
727+
```{index} see: compile;ibis
728+
```
729+
```{index} ibis; compile, str
725730
```
726731

727732
```{code-cell} ipython3

source/regression1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ predict the former.
220220

221221
## K-nearest neighbors regression
222222

223-
```{index} K-nearest neighbors; regression
223+
```{index} K-nearest neighbors, K-nearest neighbors; regression
224224
```
225225

226226
Much like in the case of classification,
@@ -540,7 +540,7 @@ training or testing data. But many people just use RMSE for both,
540540
and rely on context to denote which data the root mean squared error is being calculated on.
541541
```
542542

543-
```{index} scikit-learn, scikit-learn; pipeline, scikit-learn; make_pipeline, scikit-learn; make_column_transformer
543+
```{index} scikit-learn, scikit-learn; Pipeline, scikit-learn; make_pipeline, scikit-learn; make_column_transformer
544544
```
545545

546546
Now that we know how we can assess how well our model predicts a numerical

source/regression2.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,11 @@ mlm.fit(
734734
```
735735
Finally, we make predictions on the test data set to assess the quality of our model.
736736

737-
```{index} predict, mean_squared_error
737+
```{index} scikit-learn;predict, scikit-learn;mean_squared_error
738+
```
739+
```{index} see: mean_squared_error;scikit-learn
740+
```
741+
```{index} see: predict;scikit-learn
738742
```
739743

740744
```{code-cell} ipython3

0 commit comments

Comments
 (0)