Skip to content

Commit

Permalink
also adopt np.prod in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Jul 4, 2023
1 parent f2a0a0f commit 4a82a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/notebooks/pytorch_tests_onoff.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
" self.auxdata.append(bkg_over_bsq)\n",
"\n",
" def alphas(self, pars):\n",
" return np.product([pars, self.bkg_over_db_squared], axis=0)\n",
" return np.prod([pars, self.bkg_over_db_squared], axis=0)\n",
"\n",
" def logpdf(self, a, alpha):\n",
" return _log_poisson_impl(a, alpha)\n",
Expand Down

0 comments on commit 4a82a85

Please sign in to comment.