Skip to content

Commit 16b6b8c

Browse files
Merge pull request #107 from tidymodels/no-more-changes
No more changes
2 parents a6aba98 + f002cb7 commit 16b6b8c

File tree

25 files changed

+677
-656
lines changed

25 files changed

+677
-656
lines changed

_freeze/learn/models/sub-sampling/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/learn/statistics/infer/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/learn/statistics/survival-case-study/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/learn/statistics/xtabs/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/learn/work/nested-resampling/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

learn/models/sub-sampling/figs/merge-metrics-1.svg

Lines changed: 128 additions & 131 deletions
Loading

learn/models/sub-sampling/index.html.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Consider a two-class problem where the first class has a very low rate of occurr
2828

2929
```{.r .cell-code}
3030
imbal_data <-
31-
3231
readr::read_csv("https://tidymodels.org/learn/models/sub-sampling/imbal_data.csv") %>%
3332
mutate(Class = factor(Class))
3433
dim(imbal_data)
@@ -62,6 +61,8 @@ Here is a simple recipe implementing oversampling:
6261
```{.r .cell-code}
6362
library(tidymodels)
6463
library(themis)
64+
set.seed(1234)
65+
6566
imbal_rec <-
6667
recipe(Class ~ ., data = imbal_data) %>%
6768
step_rose(Class)
@@ -152,8 +153,8 @@ collect_metrics(qda_rose_res)
152153
#> # A tibble: 2 × 6
153154
#> .metric .estimator mean n std_err .config
154155
#> <chr> <chr> <dbl> <int> <dbl> <chr>
155-
#> 1 j_index binary 0.804 50 0.0178 Preprocessor1_Model1
156-
#> 2 roc_auc binary 0.953 50 0.00459 Preprocessor1_Model1
156+
#> 1 j_index binary 0.777 50 0.0199 Preprocessor1_Model1
157+
#> 2 roc_auc binary 0.949 50 0.00508 Preprocessor1_Model1
157158
```
158159
:::
159160

learn/models/sub-sampling/index.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Consider a two-class problem where the first class has a very low rate of occurr
5454
#| label: "load-data"
5555
#| message: false
5656
imbal_data <-
57-
5857
readr::read_csv("https://tidymodels.org/learn/models/sub-sampling/imbal_data.csv") %>%
5958
mutate(Class = factor(Class))
6059
dim(imbal_data)
@@ -82,6 +81,8 @@ Here is a simple recipe implementing oversampling:
8281
#| label: "rec"
8382
library(tidymodels)
8483
library(themis)
84+
set.seed(1234)
85+
8586
imbal_rec <-
8687
recipe(Class ~ ., data = imbal_data) %>%
8788
step_rose(Class)

learn/statistics/infer/figs/unnamed-chunk-23-1.svg

Lines changed: 45 additions & 45 deletions
Loading

learn/statistics/infer/figs/visualize-1.svg

Lines changed: 62 additions & 59 deletions
Loading

0 commit comments

Comments
 (0)