2 2 votes Machine Learning Interview Questions k-means data-science clustering machine-learning + – 25% Accept Rate Accepted 1 answers out of 4 questions datascience 1.1k points 9 11 19 answer comment Share 0 reply Please log in or register to add a comment.
0 0 votes My Answer def select_k(n): k = int(math.sqrt(n)) # if k is an even number subtract 1 if k % 2 == 0: return k-1 else: return k DavidS answered Oct 17, 2018 DavidS 200 points 2 2 4 comment Share See 1 comment 1 1 comment reply tofighi 116k points 73 79 101 commented Oct 17, 2018 reply flag Is not this rule be of thumb for k-NN?! 0 0 replyShare Please log in or register to add a comment.