Giter Site home page Giter Site logo

zoj613 / occuspytial Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 495 KB

A package for fast bayesian analysis of single season spatial occupancy models.

Home Page: https://occuspytial.readthedocs.io

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

Python 97.77% Makefile 0.95% Shell 1.27%
markov-chain-monte-carlo mcmc occupancy-detection occupancy-modeling spatial-statistics species-occupancy

occuspytial's People

Contributors

zoj613 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

sandy4321

occuspytial's Issues

Make use of numpy's universal functions to simplify codebase

numpy.add.reduceat can be used instead of the cython module with function

def split_sum(double[:] arr, long[:] sections, double[:] out):
cdef:
double summation
long previous, current, size = out.shape[0]
Py_ssize_t i, j
with nogil:
for i in range(size):
previous = sections[i]
current = sections[i + 1]
summation = 0
for j in range(previous, current):
summation += arr[j]
out[i] = summation

Numpy universal functions are fast so the speed should roughly be the same.

Gibbs resample method broken

resample method of gibbs samplers is broken since #16 since the PR removes the _excluded attribute in the PosteriorParameter class.

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.