Skip to main content

Light Weight Homology Framework

Project description

LHF: Lightweight Homology Framework

LHF is a homology framework designed for enabling modular pipelines for preprocessing and experiments around computing persistent homology. The base pipelines enable LHF to compute persistence intervals of an input point cloud by evaluating the distance matrix, building the simplicial complex, and reducing the complex to identify the persistence intervals at different dimensions.

Additional pipelines have been created for preprocessing, approximations of the boundary matrix, approximate simplicial complexes representing the input point cloud, boundary extraction, and upscaling based on previous studies detailed in several of the references below. The intent for LHF is to provide a modular framework to continue exploring, developing, and evaluating mechanisms for approximating or optimizing the computation of persistent homology over an input point cloud.


REQUIREMENTS

  • C++14

  • CMake

  • OpenMPI (if build / run for distributed)

  • Numpy


Installing

$ pip install lhf

RUNNING

S    python3 -m pyLHF <Arguments>

ARGUMENTS

Argument Shorthand Description Default
"--preprocessor" "-pre" Preprocessing Method None
"--clusters" "-k" Number of preprocessing clusters 5
"--dimensions" "-d" Max dimensions to run at 3
"--epsilon" "-e" Epsilon value for simplicial complexes 5
"--lambda" "-l" Lambda value (decay factor) for DenStream .25
"--mode" "-m" Mode to run LHF in (fast, slidingwindow, upscaling, etc.) default
"--complexType" "-c" Simplicial complex constructed SimplexArrayList
"--inputFile" "-i" File to read into pipeline None
"--outputFile" "-o" File to output to None
"--debug" "-x" Debug mode 0

EXAMPLES:

$    python3 -m pyLHF -m fast --inputFile testData.csv
$    python3 -m pyLHF --pipeline distMatrix.distMatrix.distMatrix -i testData.csv -o output.csv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lhf-1.0.7-py3-none-any.whl (794.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page