Skip to content

Commit

Permalink
cleaned up hipp and ehipp models and results
Browse files Browse the repository at this point in the history
  • Loading branch information
jpleet committed Oct 25, 2020
1 parent 363f3d6 commit 481be13
Show file tree
Hide file tree
Showing 12 changed files with 674 additions and 446 deletions.
534 changes: 534 additions & 0 deletions experiments/consumer-resource/evolving_hipp.ipynb

Large diffs are not rendered by default.

326 changes: 0 additions & 326 deletions experiments/consumer-resource/evolving_lotka_volterra.ipynb

This file was deleted.

182 changes: 86 additions & 96 deletions experiments/consumer-resource/hunt_interfer_predator_prey.ipynb

Large diffs are not rendered by default.

Binary file added figures/ehipp_population.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/ehipp_trait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/hipp_2000_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/hipp_2000_75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/hipp_4000_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/hipp_4000_75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions iebm/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import heapq
from tqdm import tqdm

import warnings
warnings.filterwarnings("error")
import traceback
#import warnings
#warnings.filterwarnings("error")
#import traceback

class Simulation():
""" Base individual-level model. Creates a simulation with a given
Expand Down
2 changes: 1 addition & 1 deletion iebm/traits/mutable_trait.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_value(self, actor_id):
"""

actor_idx = self.population._get_actor_idx(actor_id)
if actor_idx in not None:
if actor_idx is not None:
# return value at row number and trait column name
return self.population.df[actor_idx, str(self)]
else:
Expand Down
70 changes: 50 additions & 20 deletions readme.md

Large diffs are not rendered by default.

0 comments on commit 481be13

Please sign in to comment.