- Notifications
You must be signed in to change notification settings - Fork 63
docs: add a code sample for creating a kmeans model #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 31 commits
69fe5d7 5fb1d4f 523255f 3bb267a 73d2a46 b3c0578 c25aeb5 db9f439 e7bd5ef 2a7d575 809ed05 5dba2b9 2207941 5e00a3c 7c64227 11678e0 f95cd9f 0df2dec 06a2490 1a9f7d9 464cf1c d03f46c 019e243 72174f9 50a447d ac348bf 7ce5337 29b2e1f 7762f0f 479a828 1572ddd 3d77ddd 505b790 4505c5c cad2185 3ab8220 816881c 9b382d6 ae9a362 5eb59ec File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,140 @@ | ||||||||||||||
| # Copyright 2023 Google LLC | ||||||||||||||
| ||||||||||||||
| # Copyright 2023 Google LLC | |
| # Copyright 2024 Google LLC |
SalemJorden marked this conversation as resolved. Show resolved Hide resolved
SalemJorden marked this conversation as resolved. Show resolved Hide resolved
tswast marked this conversation as resolved. Show resolved Hide resolved
SalemJorden marked this conversation as resolved. Outdated Show resolved Hide resolved
tswast marked this conversation as resolved. Show resolved Hide resolved
tswast marked this conversation as resolved. Show resolved Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do a to_gbq() here to save the model to a permanent location.
It should look very similar to the getting started tutorial:
| # The model.fit() call above created a temporary model. | |
| # Use the to_gbq() method to write to a permanent location. | |
| model.to_gbq( | |
| your_model_id, # For example: "bqml_tutorial.sample_model", | |
| replace=True, | |
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to_gbq() to save the model.
Uh oh!
There was an error while loading. Please reload this page.