Coder Social home page Coder Social logo

eliotwrobson / cynetdiff Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 3.58 MB

A performance-focused library implementing algorithms for simulating network diffusion processes, written in Cython.

Home Page: https://eliotwrobson.github.io/CyNetDiff/

License: MIT License

Python 75.51% Cython 24.49%

cynetdiff's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @eliotwrobson
  • ๐Ÿ‘€ Iโ€™m interested in theoretical computer science!
  • ๐ŸŒฑ Iโ€™m currently learning about geometry in high dimensions.
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on papers.
  • ๐Ÿ“ซ How to reach me: [email protected].

cynetdiff's People

Contributors

eliotwrobson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cynetdiff's Issues

Make methods more consistent

See title, make method names and return types more consistent. Also, add a built-in counter for the number of model iterations that have been executed.

Generalize activation probability function

See title. Instead of setting a single global default activation probability, pull from a set that's stored internally. This will improve performance in the trivalency case.

Bucket-filling Algorithm for Linear Threshold

The current way of simulating the linear threshold model is reasonably fast. However, it involves checking all in-neighbors of a node during each attempted activation. This can be simplified by using a "bucket-filling" algorithm, where each node is given a "bucket" and activated nodes fill the buckets of their neighbors upon activation. It should be possible then to remove the predecessors arrays and substantially save space.

Add introduction section to documentation

Add a section of the documentation that explains the models in-detail. This should accompany a running example of CyNetDiff code corresponding to the aspect of the model being described (i.e. the concept of activation, seeing which nodes get activated, etc).

Investigate Lazy Threshold Computation

For the linear threshold model, the thresholds are being computed in advance for every node in the entire graph. This is fine if most of the nodes in the graph will be visited, but for workloads where only very few nodes are visited, this is inefficient. See about changing to computing these thresholds lazily and what effect that has on performance.

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.