Published December 22, 2022 | Version v1
Software Open

Code for ``Identifying The Latent Space Geometry Of Network Formation Models Via Analysis Of Curvature."

  • 1. Department of Statistics, University of Washington
  • 2. Department of Economics, Stanford University

Description

This code implements the geometry classification methods from Identifying Latent Space Geometry in Network Models using Analysis of Curvature by Lubold et al (https://arxiv.org/abs/2012.10559). Send questions or comments to Shane Lubold at sl223@uw.edu. The Indian Villages data used in this paper is not available publicly, so we only provide the code to reproduce the C Elegans example.

Files:

  • Bootstrap.py: Implements the bootstrapping method used to test the three geometry hypotheses (Euclidean, spherical, and hyperbolic).
  • celegans131matrix.csv: Contains the adjacency matrix of a neuron network in a C. Elegans worm. This data can be accessed here: https://www.dynamic-connectome.org/?page_id=25
  • Classification_CElegans_Repeat.py: Classifies the C Elegans neural network available in celegans131matrix.csv.
  • Compute_Rate.py: Implements an estimator of the rate of the sequence \tau_n that appears in Section 2 of https://projecteuclid.org/euclid.aos/1176325770. Currently, our method does not use this code. We simply use \tau_n = 1/3. However, future work could use this code to construct use better rate estimates.
  • Generate_Hyperbolic.py: Simulates positions and distances on hyperbolic space.
  • Make_D_Spherical.py: Simulates positions and distances on spherical space.
  • Make_Euclidean_D.py: Simulates positions and distances on Euclidean space.
  • Rank_Estimator.py: Estimates the rank of a matrix from a noisy estimate of the matrix. We implement the "ladle" estimator from https://academic.oup.com/biomet/article-abstract/103/4/875/2659039.
  • Supplementary_Files.py: Contains various pieces of code that we need, such as estimating the distance matrix from the adjacency matrix.
  • Type1_Power.py: Computes the type 1 and error for the geometry classifier.
  • Estimate_Curvature.py: Estimates the curvature of the latent space from a matrix of distances between points in the latent space.

Files

celegans131matrix.csv

Files (76.4 kB)

Name Size Download all
md5:a4ce60cae72cfb8261c570698ef38899
2.6 kB Download
md5:5ea58930d370862d13b0b8ab719c440a
34.3 kB Preview Download
md5:00d0822491debfaef33d22f362a1439d
4.1 kB Download
md5:ff34e3587d43924e6573c60760c7aa6e
2.2 kB Download
md5:e7137dd0346b1fb515d938b5d69f85e2
786 Bytes Download
md5:fa3317413219aa5c8ff15dae5c9b1a0c
1.6 kB Download
md5:8047f25ad120437df79de761dd985fc1
1.4 kB Download
md5:0dfbe8620db01671f903e0ee8e3f662e
711 Bytes Download
md5:1bafaeb5f19433356a2d8d6889a6fb7c
2.4 kB Download
md5:21427dfcc58e50c54958b3a7521c9188
2.0 kB Preview Download
md5:075d63cdc3df4ec1a34bd34b3fd77434
15.5 kB Download
md5:ea8db43d38888d02ae6ed56b257c8505
8.8 kB Download