Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
runboj committed Nov 13, 2023
1 parent d320236 commit 35567cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ First, build the dimension reduction image in terminal:

Once built, you can run the following examples:
`make UMAP_example`
which is equivalend to first `make run_docker` then `python umap_run.py data/example_shapes/Demoshapes.npz data/output '{"n_components": 2, "min_dist": 0.1, "n_neighbors": 7}'`.


These examples utilize the information stored in the folder /data. The computed latent vectors will be saved in data/output.

Expand Down
2 changes: 1 addition & 1 deletion umap_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def computeUMAP(data,
images = None
if images_dir == "data/example_shapes/Demoshapes.npz":
images = np.load(images_dir)['arr_0']
if images_dir == "data/example_latentrepresentation/f_vectors.parquet":
elif images_dir == "data/example_latentrepresentation/f_vectors.parquet":
df = pd.read_parquet(images_dir)
images = df.values
else: # user uploaded zip file
Expand Down

0 comments on commit 35567cd

Please sign in to comment.