Git Product home page Git Product logo

ocimp's Introduction

OCIMP

Introduction

This codebase consists of implementations of algorithms & simulation scripts for Online Contextual Influence Maximization Problem (OCIMP). We have support for both contextual and non-contextual simulations, as well as the variants of edge-level feedback (OCIMP), node-level feedback (OCIMP_Node) and active learning setting (OCIMP_Active).

You are free to use these codes for any purpose. The raw results and plots provided in Misc folder are from our work and are only for inspection. If you intend to use these implementations or refer to COIN, COIN+, COIN-HD or PureExploitation algorithms, please cite our paper:

A. O. Saritac, A. Karakurt and C. Tekin, "Online contextual influence maximization in social networks", in Proc. 54th Allerton Conference, September 2016, Monticello, Illinois.

Detailed descriptions and related references of the algorithms are provided in this paper. For any further questions, report problems or suggest improvements feel free to contact me. Third-party contributions are more than welcome.

Installation & Usage

This is a Python 3 codebase and only depends on NumPy in run-time and Cython for linking C++ implementations to Python. We use TIM+ as the offline influence maximization solver. A refactored version of this library is hosted at TIM+ folder. We require the user to cythonize (link C++ source to Python) and compile the C++ source of TIM+ according to their own architecture. To do so,

python ./TIM+/Tim/setup.py build_ext --inplace
python ./TIM+/UnderTim/setup.py build_ext --inplace

Then, replace the pytim.* and undertim.* files in each of the algorithm's folders. These are the compilations based on the author's computer. Notice that, the graph files and these C++ shared object files are copied in each of the folder independently. This prevents the racing conditions and makes it possible to run multiple algorithms simultaneously without any segmentation fault.

Each algorithm has a class implementation that implements a base class IM_Base*.py, which handles the low-level tasks about the simulations. There are currently 2 context space implementations, IM_Base.py corresponds to the pyramidal surfaces and IM_Base2.py to the sigmoid-based surfaces. The results of these settings are stored in the folders of te same name under Misc/*_results folders. To use one, just make sure that the algorithm extends the correct base class. To run an algorithm, you can simply use *_script.py. The algorithm parameters are explicitly declared in these scripts and can easily be changed.

ocimp's People

Contributors

altugkarakurt avatar

Stargazers

Yuliang Zhang avatar

Watchers

 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.