From 4a82a85eee6354089fe72cdb721f382989ac1621 Mon Sep 17 00:00:00 2001 From: Alexander Held Date: Tue, 4 Jul 2023 17:21:10 +0200 Subject: [PATCH] also adopt np.prod in notebooks --- docs/examples/notebooks/pytorch_tests_onoff.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/notebooks/pytorch_tests_onoff.ipynb b/docs/examples/notebooks/pytorch_tests_onoff.ipynb index b4c0780a46..b1830d14ad 100644 --- a/docs/examples/notebooks/pytorch_tests_onoff.ipynb +++ b/docs/examples/notebooks/pytorch_tests_onoff.ipynb @@ -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",