Giter VIP home page Giter VIP logo

sscm's Introduction

Simplicial complexes analysis in python

This is the python repository for the works:

Setup

Copy config.ini.template, edit directory names, and optionally fill your PostgreSQL database details (required for parsing Scholp and ArXiv datasets).

Install all requirements in requirements.txt

Structure

Parsers

  • arxiv: scripts for harvesting ArXiv datasets and loading simplicial complexes computed from them into the database
  • scholp: scripts for loading simplicial complexes computed from downloaded Scholp datasets into the database.

Working with simplicial complexes in the database (paper in HHS20)

  • facets.py: script for computing facets. Run python facets.py -h for help.
  • faces_degrees: compute q-faces and degrees. It MUST be run after facets.py. Run python faces_degrees.py -h for help.
  • export_faces_to_csv: exports computed faces from the database to a CSV file. Run python export_faces_to_csv.py -h for help.
  • stats.py: generate datasets and degrees statistics and exports them to a CSV file. Run python stats.py -h for help.
  • figires.py: generates figures regarding datasets and degrees' statistics. It MUST be run after stats.py.

The Stochastic Simplicial Contagion Model

  • HVHT22_contagion_experiments_by_region.json: Defines experiment parameters for the contagion model simulations
  • HVHT22_simplagion_experiment_parameters.ipynb: Outputs configuration setup (MUST be copied in contagion_experiments.py) for the contagion model based on the experiments defined in HVHT22_contagion_experiments_by_region.json
  • contagion_model.py: Runs the stochastic simplicial contagion model on the datasets defined and using the parameters (experiments) defined in contagion_experiments.py. Run python contagion_model.py -h for help.

sscm's People

Contributors

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