(**kwargs)
Get the x,y positions of images passed through a umap projection
Get the x,y positions of images passed through a umap projection
Get the x y positions of images passed through a umap projection
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)
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 )