Skip to content

Commit

Permalink
Made Gaussian signal a single common noise source for all agents
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnmdyer committed Aug 3, 2024
1 parent 81d46b1 commit 1e90b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blackbirds/models/rama_cont.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e90b96

Please sign in to comment.