Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AssemblyAI-Community/Machine-Learning-From-Scratch
/ kmeans.py
File
kmeans.py
10 KMeans/kmeans.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
numpy
as
np
2
import
matplotlib.pyplot
as
plt
3
4
def
euclidean_distance(x1, x2):
Callers
nothing calls this directly
Calls
3
KMeans
Class · 0.85
plot
Method · 0.80
predict
Method · 0.45
Tested by
no test coverage detected