Coder Social home page Coder Social logo

claireguerin / institution-evolution Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 603 KB

The master program for my thesis simulations. Recreates a structured population with a number of possible social features and traits

Home Page: https://claireguerin2.wixsite.com/theoevo/

Python 62.60% Mathematica 37.40%
evolution theory biology culture human social institutions societies structured-populations

institution-evolution's Introduction

institution-evolution

Branch travis ci logo codecov logo
master Build Status codecov
develop Build Status codecov

Installation

Download the repository institution-evolution on your local machine.

Launch simulation

โš ๏ธ Non-values are marked with -99 in output files: Be mindful there when analyzing data! For instance, when technology level is not recorded in the simulation, the corresponding output file will show a mean technology level of -99 for every generation.

Requirements

Scipy and Numpy for running simulations, Pytest to test code. To install all requirements, run: pip install -r requirements.txt

This code is written under Python 3.7.3

Parameters

Set parameters as desired in pars folder:

  • fitness_parameters.txt: specific to fitness function used. For now, only Public Goods Games (PGG)
  • initial_phenotypes.txt: \n for each new trait
  • parameters.txt: general parameters
    • mutation rate,
    • mutation variance,
    • migration rate
  • initialisation.txt:
    • number of demes (i.e. sub-populations)
    • initial size of demes (number of individuals in each sub-population)
    • number of generations (iterations) to run.

Command line

Run a single simulation

python script_single_simulation.py

Test parameter space

python script_parameter_space.py

institution-evolution's People

Contributors

claireguerin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.