@timeit(logging.DEBUG)
    def find_bmu(self, input_matrix, njb=1):
        dlen = input_matrix.shape[0]
        y2 = np.einsum('ij,ij->i', self.codebook.matrix, self.codebook.matrix)

        parallelizer = Parallel(n_jobs=njb, pre_dispatch='3*n_jobs')
        chunk_bmu_finder = delayed(_chunk_based_bmu_find)

        row_chunk = lambda part: part * dlen // njb
        col_chunk = lambda part: min((part+1)*dlen // njb, dlen)

        b = parallelizer(chunk_bmu_finder(input_matrix[row_chunk(i):col_chunk(i)], self.codebook.matrix, y2) for i in xrange(njb))
        bmu = np.asarray(list(itertools.chain(*b))).T

        del b
        return bmu
Find a single item with attributes matching ``**kwargs``.
dataset/ETHPy150Open sevamoo/SOMPY/sompy.py/SOM.find_bmu--crossover with--dataset/ETHPy150Open kwminnick/rackspace-dns-cli/dnsclient/base.py/ManagerWithFind.find