Skip to content

Commit

Permalink
Merge pull request #38 from tidymodels/dev-dbplyr
Browse files Browse the repository at this point in the history
Fix bug revealed by dev dbplyr
  • Loading branch information
topepo authored Oct 31, 2023
2 parents 2cb0cd3 + 2394731 commit 15c6a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/kmeans.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ km <- db_flights %>%

The `simple_kmeans_db()` function uses a progress bar to show you the current cycle, the maximum cycles it's expected to run, the current difference between the previous cycle and the current cycle, and the running time. The loop will stop once it wither has two matching consecutive cycles, or if it reaches the maximum number of cycles, as determined by the `max_repeats` argument.

The final **centers** are are stored in the `centers` variable of the returned object
The final **centers** are are stored in the `k_center` variable of the returned object
```{r}
km$centers
km %>% pull(k_center)
```

The latest results are stored in the `tbl` variable of the returned object. The type of the returned table will match the type of the original source, so if it is a remote source, such as database table, then `tbl` will be a class `tbl_sql`. This will allow us to do two thing:
Expand Down

0 comments on commit 15c6a2d

Please sign in to comment.