Skip to content

Commit

Permalink
Merge pull request #353 from scverse/detached2
Browse files Browse the repository at this point in the history
Update several tutorials so they will work in scvi-tools 1.2.0, py312…
  • Loading branch information
ori-kron-wis authored Sep 25, 2024
2 parents 80ddc92 + 7bfc1ce commit 6a8a073
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 28 deletions.
4 changes: 2 additions & 2 deletions spatial/cell2location_lymph_node_spatial_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@
"# (summary of the posterior distribution).\n",
"adata_ref = mod.export_posterior(\n",
" adata_ref,\n",
" sample_kwargs={\"num_samples\": 1000, \"batch_size\": 2500, \"use_gpu\": True},\n",
" sample_kwargs={\"num_samples\": 1000, \"batch_size\": 2500},\n",
")\n",
"\n",
"# Save model\n",
Expand Down Expand Up @@ -1625,7 +1625,7 @@
"# In this section, we export the estimated cell abundance (summary of the posterior distribution).\n",
"adata_vis = mod.export_posterior(\n",
" adata_vis,\n",
" sample_kwargs={\"num_samples\": 1000, \"batch_size\": mod.adata.n_obs, \"use_gpu\": True},\n",
" sample_kwargs={\"num_samples\": 1000, \"batch_size\": mod.adata.n_obs},\n",
")\n",
"\n",
"# Save model\n",
Expand Down
Loading

0 comments on commit 6a8a073

Please sign in to comment.