changed something
This commit is contained in:
parent
cc9fedcb83
commit
7a6d92b39b
|
@ -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])]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user