parameters: (**kwargs)
docstring: Get the x,y positions of images passed through a umap projection
docstring_summary: Get the x,y positions of images passed through a umap projection
docstring_tokens: Get the x y positions of images passed through a umap projection
function: def get_umap_layout(**kwargs):
    '''Get the x,y positions of images passed through a umap projection'''
    vecs = kwargs['vecs']
    w = PCA(n_components=min(100, len(vecs))).fit_transform(vecs)
    # single model umap
    if len(kwargs['n_neighbors']) == 1 and len(kwargs['min_dist']) == 1:
      return process_single_layout_umap(w, **kwargs)
    else:
      return process_multi_layout_umap(w, **kwargs)
function_tokens: def get_umap_layout ( * * kwargs ) : vecs = kwargs [ 'vecs' ] w = PCA ( n_components = min ( 100 , len ( vecs ) ) ) . fit_transform ( vecs ) # single model umap if len ( kwargs [ 'n_neighbors' ] ) == 1 and len ( kwargs [ 'min_dist' ] ) == 1 : return process_single_layout_umap ( w , * * kwargs ) else : return process_multi_layout_umap ( w , * * kwargs )