GithubHelp home page GithubHelp logo

mbjoseph / neuralecology Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 10.0 13.61 MB

Code for the paper "Neural hierarchical models of ecological populations"

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.32% R 5.02% Python 3.28% Jupyter Notebook 86.19% TeX 4.95% Stan 0.24%
deep-learning ecology occupancy bayesian hierarchical-model science-based-deep-learning research-compendium

neuralecology's Introduction

Neural hierarchical models of ecological populations

DOI

Paper: https://onlinelibrary.wiley.com/doi/full/10.1111/ele.13462
Preprint: https://www.biorxiv.org/content/10.1101/759944v3

Key idea

Parameterize a hierarchical model (an observation + process + parameter model) with a neural network, creating a neural hierarchical model.

Alt text

Here, (a) shows linear regression, mapping input x to an output y. In (b) a neural network inserts hidden layers between x and y. Analogously, an ecological model (c) maps an input x to parameters of a hierarchical model. A neural version of model (d) would similarly involve hidden layers between x and these parameters. Deep models (e) can also be constructed that use more complex neural architectures, especially when data are structured in time, space, and/or over networks.

A variety of neural network components can be readily used in neural hierarchical models. For example, you might parameterize a hidden Markov model of animal movement using a convolutional neural network that takes remotely sensed imagery as input (see Appendix S2 for details).

convHMM

Hardware requirements

  • 20+ GB of RAM
  • 4 or more CPU cores
  • GPU recommended

Setting up the environment

This project uses conda to install python dependencies.

conda env create -f environment.yml

Once installed, activate the environment via:

conda activate neural-ecology

To install R dependencies:

R -e "devtools::install_deps(dependencies = TRUE)"

Running the toy models

Binder

The notebooks/ subdirectory contains toy models in Jupyter notebooks:

Building the paper

The workflow for building the paper is handled with GNU Make. To build the paper (including running the models for the case study) takes ~ 5 hours with 6 CPU cores and a GPU.

make

neuralecology's People

Contributors

mbjoseph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.