Code Monkey home page Code Monkey logo

fish-risk's Introduction

fish-risk

Modelling stakeholder-agent risk response through metrics

Setup

Setup is straightforward with poetry.

# In project root
poetry install

This will install src modules, i.e. sim.
You can then use our package modules such as sim.models and sim.utils.

Dev

For devs, if you need to use a new package run

poetry add <package>

which will update the env and pyproject.toml.
Or if you want finer control over the package version for instance, you can update pyproject.toml directly and run poetry update.

Usage

You can run simulations ad hoc with notebooks (see below), but you may find it easier, and it is recommended, to create scripts for your run.

See existing scripts that might be closest to your use case in the scripts folder, copy one and rename yours accordingly. You'll want to run the scripts inside the scripts folder since it directs results into the parent directory. For example:

poetry shell  # Enter poetry env
cd scripts
python evolve_preference.py --config-name=evolve-preference  # not evolve-preference.yaml btw

Configs

We use hydra to manage configs. It's a cool tool. Use them to configure your run, it knows to look in the configs directory automatically.

Notebooks

Our package and its dependencies are accessed in a poetry env. You can instantiate a command inside the env with poetry run, for example:

poetry run python  # start a python session
# or
poetry run jupyter lab

fish-risk's People

Contributors

m-walters avatar jds8 avatar joyeechen 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.