Created
June 4, 2021 02:28
-
-
Save eileen-code4fun/a124892429bb0ec7d32d9e08d54a9139 to your computer and use it in GitHub Desktop.
CIFAR10 BQ MODEL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE MODEL | |
# Name of the model. | |
`bqml.e2e-tutorial` | |
OPTIONS | |
# BigQuery will detect that it's for multiclass. | |
( MODEL_TYPE='LOGISTIC_REG') AS | |
SELECT | |
# Use the first column as the label. | |
int64_field_0 as label, | |
# The rest are features. | |
* EXCEPT (int64_field_0) | |
FROM | |
# Data taken from the train table. | |
`bqml.train`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment