Last active
June 26, 2019 19:59
-
-
Save orcaman/a6a80457ceb481c1672c05f2ac5de759 to your computer and use it in GitHub Desktop.
K-Means CREATE OR REPLACE MODEL
This file contains 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 OR REPLACE MODEL | |
public.iris_clusters | |
OPTIONS | |
(model_type='kmeans', | |
num_clusters=4, | |
standardize_features = TRUE) AS | |
SELECT | |
DISTINCT sepal_length, | |
sepal_width, | |
petal_length, | |
petal_width, | |
species | |
FROM | |
`public.iris` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment