From 1cbdccbd57f58ae59ddd17184d58f8720c91402d Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Tue, 6 Aug 2024 06:10:56 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 659928831 --- agent_based_epidemic_sim/learning/risk_score_learning.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent_based_epidemic_sim/learning/risk_score_learning.ipynb b/agent_based_epidemic_sim/learning/risk_score_learning.ipynb index 3883df4..d1fc458 100644 --- a/agent_based_epidemic_sim/learning/risk_score_learning.ipynb +++ b/agent_based_epidemic_sim/learning/risk_score_learning.ipynb @@ -327,7 +327,7 @@ "\n", "def project(params):\n", " \"\"\"Project residual parameters to nonnegative orthant.\"\"\"\n", - " params = np.clip(params, 0, np.infty)\n", + " params = np.clip(params, 0, np.inf)\n", " return params\n", "\n", "def train(data, labels, weights_init, batch_size=100, num_iters=1000, lr=0.01):\n",