Skip to content

Commit e7f8d1e

Browse files
authored
Merge pull request #40 from YosefLab/valehvpa/fix_nb_typo
Fix `total_counts` to `total_count` in the module_user_guide
2 parents 11b5a2e + f729c11 commit e7f8d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module_user_guide.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
" # the pytorch NB distribution uses a different parameterization\n",
412412
" # so we must apply a quick transformation (included in scvi-tools, but here we use the pytorch code)\n",
413413
" nb_logits = (px_rate + 1e-4).log() - (theta + 1e-4).log()\n",
414-
" log_lik = NegativeBinomial(total_counts=theta, total=nb_logits).log_prob(x).sum(dim=-1) \n",
414+
" log_lik = NegativeBinomial(total_count=theta, logits=nb_logits).log_prob(x).sum(dim=-1) \n",
415415
"\n",
416416
" # term 2\n",
417417
" prior_dist = Normal(torch.zeros_like(qz_m), torch.ones_like(qz_v))\n",

0 commit comments

Comments
 (0)