Skip to content

Instantly share code, notes, and snippets.

@petrosDemetrakopoulos
Last active October 4, 2023 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrosDemetrakopoulos/f086d3378eb4d0e7694ede01090d1f12 to your computer and use it in GitHub Desktop.
Save petrosDemetrakopoulos/f086d3378eb4d0e7694ede01090d1f12 to your computer and use it in GitHub Desktop.
Fall Detector - Fit K-means
from sklearn.cluster import KMeans
# fit K-Means
kmeans = KMeans(n_clusters=2)
kmeans.fit(extracted_features)
predictions = kmeans.predict(extracted_features)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment