changed something

This commit is contained in:
iou1name 2017-12-16 13:51:27 -05:00
parent cc9fedcb83
commit 7a6d92b39b

View File

@ -5,7 +5,6 @@ Does mosiacs.
"""
import os
import time
import random
import colorsys
import threading
@ -145,7 +144,7 @@ class Mosiac():
tol += int(tol == 0)
indexs = dist.argsort()[:tol]
# choice = dist.argmin() # closet value
choice = random.choice(indexs)
choice = np.random.choice(indexs)
return cluster[tuple(nodes[choice])]