Skip to content

Commit

Permalink
Merge pull request #49 from arnauqb/fix_cont
Browse files Browse the repository at this point in the history
Made Gaussian signal a single common noise source for all agents
  • Loading branch information
arnauqb committed Aug 5, 2024
2 parents 81d46b1 + c41fdb2 commit b31d0b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b31d0b0

Please sign in to comment.