Skip to content

Commit 4e573c4

Browse files
committed
updated tutos
1 parent 82e2e1f commit 4e573c4

File tree

1 file changed

+4
-106
lines changed

1 file changed

+4
-106
lines changed

multimodal/totalVI.ipynb

Lines changed: 4 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -448,51 +448,6 @@
448448
")"
449449
]
450450
},
451-
{
452-
"cell_type": "code",
453-
"execution_count": null,
454-
"metadata": {},
455-
"outputs": [],
456-
"source": [
457-
"print(last_val_valid)"
458-
]
459-
},
460-
{
461-
"cell_type": "code",
462-
"execution_count": null,
463-
"metadata": {},
464-
"outputs": [],
465-
"source": [
466-
"print(last_val_train)"
467-
]
468-
},
469-
{
470-
"cell_type": "code",
471-
"execution_count": null,
472-
"metadata": {},
473-
"outputs": [],
474-
"source": [
475-
"print(global_min_loss)"
476-
]
477-
},
478-
{
479-
"cell_type": "code",
480-
"execution_count": null,
481-
"metadata": {},
482-
"outputs": [],
483-
"source": [
484-
"print(last_max_loss)"
485-
]
486-
},
487-
{
488-
"cell_type": "code",
489-
"execution_count": null,
490-
"metadata": {},
491-
"outputs": [],
492-
"source": [
493-
"print(global_max_loss)"
494-
]
495-
},
496451
{
497452
"cell_type": "code",
498453
"execution_count": 16,
@@ -510,42 +465,6 @@
510465
") # keep it under the 25% part of figure"
511466
]
512467
},
513-
{
514-
"cell_type": "code",
515-
"execution_count": null,
516-
"metadata": {},
517-
"outputs": [],
518-
"source": [
519-
"print(min_loss)"
520-
]
521-
},
522-
{
523-
"cell_type": "code",
524-
"execution_count": null,
525-
"metadata": {},
526-
"outputs": [],
527-
"source": [
528-
"print(max_loss)"
529-
]
530-
},
531-
{
532-
"cell_type": "code",
533-
"execution_count": null,
534-
"metadata": {},
535-
"outputs": [],
536-
"source": [
537-
"print(ylim_min)"
538-
]
539-
},
540-
{
541-
"cell_type": "code",
542-
"execution_count": null,
543-
"metadata": {},
544-
"outputs": [],
545-
"source": [
546-
"print(ylim_max)"
547-
]
548-
},
549468
{
550469
"cell_type": "code",
551470
"execution_count": 17,
@@ -588,9 +507,10 @@
588507
"fig, ax = plt.subplots(1, 1)\n",
589508
"model.history[\"elbo_train\"].plot(ax=ax, label=\"train\")\n",
590509
"model.history[\"elbo_validation\"].plot(ax=ax, label=\"validation\")\n",
591-
"ax.set(\n",
592-
" title=\"Negative ELBO over training epochs\", ylim=(ylim_min, ylim_max)\n",
593-
") # you can still plug in you numbers\n",
510+
"if isinstance(ylim_min, (int, float)) and isinstance(ylim_max, (int, float)):\n",
511+
" ax.set(title=\"Negative ELBO over training epochs\", ylim=(ylim_min, ylim_max))\n",
512+
"else:\n",
513+
" ax.set(title=\"Negative ELBO over training epochs\")\n",
594514
"ax.legend()"
595515
]
596516
},
@@ -1334,28 +1254,6 @@
13341254
"sc.tl.dendrogram(protein, groupby=TOTALVI_CLUSTERS_KEY, use_rep=TOTALVI_LATENT_KEY)"
13351255
]
13361256
},
1337-
{
1338-
"cell_type": "code",
1339-
"execution_count": 34,
1340-
"metadata": {},
1341-
"outputs": [
1342-
{
1343-
"data": {
1344-
"text/plain": [
1345-
"'1.11.1'"
1346-
]
1347-
},
1348-
"execution_count": 34,
1349-
"metadata": {},
1350-
"output_type": "execute_result"
1351-
}
1352-
],
1353-
"source": [
1354-
"import scipy\n",
1355-
"scipy.__version__ \n",
1356-
"sc.__version__"
1357-
]
1358-
},
13591257
{
13601258
"cell_type": "markdown",
13611259
"metadata": {

0 commit comments

Comments
 (0)