Giter Site home page Giter Site logo

ilmpythontools's People

Contributors

jangevaare avatar

Watchers

 avatar

ilmpythontools's Issues

AttributeError: exp

Find what's causing this...

edb1 = infect(pop, 20, 1, edb1, 2)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-29-f20974850e7a> in <module>()
----> 1 edb1 = infect(pop, 20, 1, edb1, 2)

<ipython-input-2-4fb6aa0cdbfb> in infect(pop, alpha, beta, event_db, time)
     50     infectious = find_infectious(pop, event_db, time)
     51     susceptible = find_susceptible(pop, event_db, time)
---> 52     prob = infect_prob(pop, alpha, beta, infectious, susceptible)
     53     new_infections = susceptible.index[np.where(prob < np.random.uniform(0, 1, size=prob.size))]
     54     return event_db.append(pd.DataFrame({"time":np.repeat(time, new_infections.size), 

<ipython-input-2-4fb6aa0cdbfb> in infect_prob(pop, alpha, beta, infectious, susceptible)
     44 def infect_prob(pop, alpha, beta, infectious, susceptible):
     45     """Determine infection probabilities for each susceptible individual following ILM framework."""
---> 46     return 1-np.exp(np.multiply(-alpha, kappa(pop, beta, infectious, susceptible)))
     47 
     48 def infect(pop, alpha, beta, event_db, time):

AttributeError: exp 

Epidemic curves

Add functionality to plot epidemic curves from any event_db

MCMC for SIR models

Finish development of MCMC algorithm for SIR models - applicable to constant and random recovery periods

Full examples

Provide full sets of examples for all package functionality in ipython notebooks

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.