Skip to content

Commit

Permalink
Merge pull request #27 from TakeshiTohyama/gh-pages-re
Browse files Browse the repository at this point in the history
Training set should be test set in boostrapping lesson
  • Loading branch information
tompollard authored Oct 1, 2024
2 parents 8b35379 + 2c235ee commit 3a393c9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _episodes/07-bootstrapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ reg.fit(x_train, y_train)
accuracy = []
n_iterations = 1000
for i in range(n_iterations):
X_bs, y_bs = resample(x_train, y_train, replace=True)
X_bs, y_bs = resample(x_test, y_test, replace=True)
# make predictions
y_hat = reg.predict(X_bs)
# evaluate model
Expand Down Expand Up @@ -117,7 +117,7 @@ print(f"Model accuracy is reported on the test set. 1000 bootstrapped samples "

```
Model accuracy is reported on the test set. 1000 bootstrapped samples were used to calculate 95% confidence intervals.
Median accuracy is 0.86 with a 95% a confidence interval of [0.80,0.91].
Median accuracy is 0.82 with a 95% a confidence interval of [0.73,0.90].
```
{: .output}

Expand Down
Binary file modified fig/section8-fig1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fig/section8-fig2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a393c9

Please sign in to comment.