Git Product home page Git Product logo

hypergraphspectralclustering's Introduction

Nonbacktracking Spectral Clustering of Nonuniform Hypergraphs

Phil Chodrow, Nicole Eikmeier, and Jamie Haddock.

This repository houses code used in the manuscript "Nonbacktracking spectral clustering of nonuniform hypergraphs." Julia is used for primary computations, while R is used for data visualization.

If you use this code in published work, please include the following bibtex entries:

@article{chodrow2022nonbacktracking,
  title = {Nonbacktracking Spectral Clustering of Nonuniform Hypergraphs},
  author = {Chodrow, Philip S. and Eikmeier, Nicole and Haddock, Jamie L.},
  year = {2022},
  journal = {TBD},
  volume = {TBD},
  number = {TBD},
  pages = {TBD},
  publisher = {{TBD}}
}

@article{bezanson2017julia,
  title = {Julia: {{A}} Fresh Approach to Numerical Computing},
  author = {Bezanson, Jeff and Edelman, Alan and Karpinski, Stefan and Shah, Viral B},
  year = {2017},
  journal = {SIAM Review},
  volume = {59},
  number = {1},
  pages = {65--98},
  publisher = {{SIAM}}
}

Repository Outline

This repository contains the following directories:

  • src: the primary source code of the project, organized as a Julia package called HypergraphNB (NB = "NonBacktracking"). The source code implements a hypergraph struct, functions for computing various nonbacktracking matrices, inference of parameters, and simple spectral algorithms.
  • test: Unit tests for the package. The primary purpose of these unit tests is to verify identities related to matrix reduction formulae. To run unit tests:
>>> cd HypergraphNB
>>> julia

julia> ]

pkg> activate .
pkg> test
  • scripts: these files perform the primary computations. The makefile provides an automated description of the sequence in which they should be run in order to produce the figures used in the manuscript. To produce all such figures, run make figs in the top-level directory after installing all necessary Julia and R packages. Warning: as written, several of the scripts require hours or days of computation time. Running as-is on personal equipment is not recommended.
  • data: contains data used in empirical experiments. These data sets were retrieved from Austin Benson's data repository.
  • notebooks: this directory primarily contains deprecated Jupyter notebooks related to early versions of code development and experimentation. The notebooks in this directory are not expected to run or be comprehensible, and may be broken to an arbitrary extent.

Requirements

The file Manifest.toml describes the Julia requirements of HypergraphNB.jl and the files in the scripts directory. In order to create the visualizations, an installation of R with the following R packages is also required:

  • tidyverse
  • patchwork
  • ggrepel
  • colorspace
  • ggforce

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.