You are on page 1of 1

Seed = 10 & k= 2 Seed = 11 & k= 2

model ------------------------------------------------- model -------------------------------------------------

KMeans(algorithm='auto', copy_x=True, init='k- KMeans(algorithm='auto', copy_x=True, init='k-


means++', max_iter=300, means++', max_iter=300,

n_clusters=2, n_init=10, n_jobs=1, n_clusters=2, n_init=10, n_jobs=1,


precompute_distances='auto', precompute_distances='auto',

random_state=10, tol=0.0001, verbose=0) random_state=1, tol=0.0001, verbose=0)

observations ------------------------------------------ observations ------------------------------------------

[0 0 1 1 1 0 1 0 1 1 1 1 1 0] [0 0 1 1 1 0 1 0 1 1 1 1 1 0]

observations Temps ------------------------------------ observations Temps ------------------------------------

[0 0 1 2 2 2 1 0 0 2 0 1 1 2] [0 0 1 2 2 2 1 0 0 2 0 1 1 2]

observations Vent ------------------------------------- observations Vent -------------------------------------

[0 1 0 0 0 1 1 0 0 0 1 1 0 1] [0 1 0 0 0 1 1 0 0 0 1 1 0 1]

y_predict model.labels_ ------------------------------- y_predict model.labels_ -------------------------------

[0 0 0 1 1 1 1 0 0 1 0 0 0 1] [0 0 0 1 1 1 1 0 0 1 0 0 0 1]

y_predict = model.predict(x)-------------------------- y_predict = model.predict(x)--------------------------


- -

[0 0 0 1 1 1 1 0 0 1 0 0 0 1] [0 0 0 1 1 1 1 0 0 1 0 0 0 1]

cluster_centers_ -------------------------------------- cluster_centers_ --------------------------------------

[[ 0.375 0.625 0.375 0.375 ] [[ 0.375 0.625 0.375 0.375 ]

[ 1.83333333 1.5 0.66666667 0.5 ]] [ 1.83333333 1.5 0.66666667 0.5 ]]

You might also like