TGViewer
Machinelearning tests Machinelearning tests @machinelearningtest · 661 subscribers
Post #155 512
Что выведет код?
from sklearn.cluster import KMeans
import numpy as np
x = np.array([[35, 7000], [45, 6900], [70, 7100], [20, 2000], [25, 2200], [15, 1800]])
kmeans = KMeans(n_clusters=2).fit(x)
y = kmeans.cluster_centers_
print(y)
More from @machinelearningtest
  1. Apr 16, 2025❓ Что выведет следующий код на Python (модуль statistics)? import statistics as stats impo…
  2. Jul 25, 2024Post #200
  3. Jul 25, 2024Что выведет код? ((lambda x: (lambda y: x ** y)) (3)) (2)
  4. Jul 18, 2024Post #198
  5. Jul 18, 2024Что выведет код? import sys f = lambda x: list(map(sys.stdout.write, x)) t = f(['1', '2',…
  6. Jul 18, 2024Post #196
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →