return work code

This commit is contained in:
Антон Скалкин 2024-08-08 11:59:33 +04:00
parent e1f72797ea
commit 8be936e383

View File

@ -87,9 +87,9 @@ class KMeansPartitioner(partitioner.Partitioner):
kwargs = {'type': self.type, 'variable': self.variable}
centroides = k_means(self.partitions, data, 1)
centroides = [v[0] for v in centroides]
centroides.append(self.max)
centroides.append(self.min)
centroides = list(set(centroides))
centroides.sort()
for c in range(1, len(centroides) - 1):
_name = self.get_name(c)