Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lewlin committed Jan 6, 2021
1 parent 328541d commit c38a7d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/1_tutorial_tangram.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@
"import torch\n",
"\n",
"# add path of Tangram repository for importing it\n",
"sys.path.append(\"/home/tbiancal/git/Tangram\") \n",
"sys.path.append(\"./..\") \n",
"import tangram as tg"
]
},
Expand All @@ -477,7 +477,7 @@
"- Mapping should be interrupted after the score plateaus,which can be controlled by passing the `num_epochs` parameter. \n",
"- The score measures the similarity between the gene expression of the mapped cells vs spatial data: higher score means \n",
"- Note that we obtained excellent mapping even if Tangram converges to a low scores (the typical case is when the spatial data are very sparse): we use the score merely to assess convergence.\n",
"- If you are running Tangram with a GPU, uncomment`device=gpu` and comment the line `device=cpu`. On a MacBook Pro 2018, it takes ~1h to run. On a P100 GPU it should be done in a few minutes.\n",
"- If you are running Tangram with a GPU, uncomment`device=cuda: 0` and comment the line `device=cpu`. On a MacBook Pro 2018, it takes ~1h to run. On a P100 GPU it should be done in a few minutes.\n",
"- For this basic mapping, we do not use regularizers (hence the `NaN`). More sophisticated loss functions can be used using the Tangram library (refer to manuscript or dive into the code)."
]
},
Expand Down Expand Up @@ -523,7 +523,7 @@
" adata_cells=ad_sc,\n",
" adata_space=ad_sp,\n",
" device='cpu',\n",
"# device='gpu',\n",
"# device='cuda: 0',\n",
")"
]
},
Expand Down Expand Up @@ -570,7 +570,7 @@
"import torch\n",
"\n",
"# add path of Tangram repository for importing it\n",
"sys.path.append(\"/home/tbiancal/git/Tangram\") \n",
"sys.path.append(\"./..\") \n",
"import tangram as tg"
]
},
Expand Down

0 comments on commit c38a7d6

Please sign in to comment.