# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

#Points [(10,12),(5,6)]
import numpy as np
np.sqrt((10-5)**2+(12-6)**2)

#Points [(10,12,5,6),(2,2,7,8)]
np.sqrt((10-2)**2+(12-2)**2+(5-7)**2+(6-8)**2)


# +
#Points {(5,4),(1,5),(3,2),(7,9)}

def 
x1=np.array(5,1,3,7)
y1=np.array(4,5,2,9)

for 

# **NEED TO GO BACK AND FINISH**

# +
#Points{()()()()()}

from sklearn.cluster import KMeans

data=np.array([[1,24,367],
              [2,35,450],
              [5,63,750],
              [8,19,109]])

kmeans=KMeans(n_clusters=2, random_state=0).fit(data)

kmeans.labels_
# -

kmeans.cluster_centers_



StarcoderdataJupyterScriptsDedupFiltered