From 1e90b960761a431e56967f228227a2418023c966 Mon Sep 17 00:00:00 2001 From: joelnmdyer Date: Sat, 3 Aug 2024 09:55:57 +0100 Subject: [PATCH 1/2] Made Gaussian signal a single common noise source for all agents --- blackbirds/models/rama_cont.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blackbirds/models/rama_cont.py b/blackbirds/models/rama_cont.py index f2406ed..bc5e043 100644 --- a/blackbirds/models/rama_cont.py +++ b/blackbirds/models/rama_cont.py @@ -35,7 +35,7 @@ def initialize(self, params): def step(self, params, x): # draw epsilon_t from normal distribution sigma = params[2] - epsilon_t = torch.distributions.Normal(0, sigma).rsample((self.n_agents,)) + epsilon_t = torch.distributions.Normal(0, sigma).rsample() # compute order nu_t = x[-1, 0, :] order = self.compute_order(epsilon_t, nu_t) From c41fdb2084c44b568c5fdd260ec1100b438349ee Mon Sep 17 00:00:00 2001 From: Arnau Quera-Bofarull Date: Mon, 5 Aug 2024 08:40:19 +0200 Subject: [PATCH 2/2] fix numpy version see https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 7747c32..e301890 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ grad-june>=0.1.8 networkx>=3.0 normflows>=1.6.2 +numpy==1.26.4 pyyaml>=6.0 tensorboard>=2.12.1 torch>=2.0