brycewang-stanford/auto-empirical-research-skills/topology-data-analysis
Claude Code and agent skill by brycewang-stanford/auto-empirical-research-skills
- community
Checking that the SKILL.md file is still in the repository.
Topological data analysis: persistent homology, Mapper, and TDA tools
Install
npx vskill@latest install brycewang-stanford/auto-empirical-research-skills/topology-data-analysisSKILL.md
The same SKILL.md was published earlier as brycewang-stanford/auto-empirical-research-skills/topology-data-analysis.
Topological Data Analysis
A skill for applying topological data analysis (TDA) methods to research data. Covers persistent homology, Vietoris-Rips complexes, persistence diagrams, the Mapper algorithm, and vectorization methods for integrating topological features into machine learning pipelines.
Core Concepts
Simplicial Complexes from Data
TDA extracts topological features (connected components, loops, voids) from data by building simplicial complexes at multiple scales:
| Complex | Construction | Computational Cost | |
|---|---|---|---|
| Vietoris-Rips | Edge if distance < epsilon | O(n^d) for d-simplices | |
| Cech | Ball intersection (exact) | Computationally expensive | |
| Alpha | Delaunay-based (exact in low dim) | Efficient in R^2, R^3 | |
| Cubical | Grid-based (for images) | Linear in pixels |
Filtration and Persistence
A feature that persists across many scales is a genuine topological signal; short-lived features are noise.
Persistent Homology with Ripser
Computing Persistence Diagrams
Persistence Vectorization
Converting Persistence to Feature Vectors
To use topological features in machine learning, persistence diagrams must be vectorized:
Persistence Images
The Mapper Algorithm
Constructing Mapper Graphs
Mapper provides a compressed topological summary of high-dimensional data:
Mapper Parameters
| Parameter | Effect | Guidance | |
|---|---|---|---|
| Filter function | Projects data to low dimensions | PCA, eccentricity, density | |
| Number of intervals | Controls resolution of cover | 10-30 typical | |
| Overlap percentage | Controls connectivity | 20-50%, higher = more edges | |
| Clustering algorithm | Groups points within intervals | DBSCAN, single-linkage |
Stability and Statistical Significance
Bottleneck and Wasserstein Distances
Permutation Test for Topological Features
Tools and Libraries
- Ripser / ripser.py: Fast Vietoris-Rips persistence computation
- GUDHI: Comprehensive TDA library (C++ with Python bindings)
- persim: Persistence diagram distances and visualization
- KeplerMapper: Python Mapper algorithm implementation
- giotto-tda: TDA integrated with scikit-learn API
- Dionysus 2: Persistent homology and cohomology
- scikit-tda: Meta-package bundling ripser, persim, kepler-mapper, tadasets
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/43-wentorai-research-plugins/skills/domains/math/topology-data-analysis/SKILL.md
Popularity
- Repository stars
- 4,455
- Repository forks
- 532
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/brycewang-stanford/auto-empirical-research-skills/topology-data-analysis)