topological-data-analysis

Compute persistent homology and Betti numbers from complex datasets.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill topological-data-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: topological-data-analysis
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/03-mathematics/topological-data-analysis
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill topological-data-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gudhi, ripser, scikit-tda, matplotlib, numpy, pandas, scikit-learn, scipy, persim, networkx, skimage.

What problem does it solve?

This Skill helps you identify meaningful “shape” and multi-scale structure in complex datasets that standard statistics and distance-based methods often miss.

Core Features & Use Cases

  • Persistent homology & Betti numbers: Compute topological features across a filtration and summarize them using persistence diagrams, barcodes, and Betti numbers.
  • Topology-aware feature engineering: Convert persistence outputs into vector representations (e.g., persistence landscapes, Betti curves, persistence images, silhouettes) suitable for ML pipelines.
  • Practical analysis tools: Use Wasserstein or bottleneck distances to compare persistence diagrams, and apply Mapper to build a topological network from point clouds.
  • Use Case: Analyze a 3D sensor point cloud (or a noisy image-derived point cloud) to detect loops, cavities, and connected components that indicate underlying physical or biological structure.

Quick Start

Use the topological-data-analysis skill to compute persistent homology for your point cloud and output Betti numbers plus persistence diagrams so you can interpret the dataset’s topology.

Frequently Asked Questions about topological-data-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute persistent homology and Betti numbers for a point cloud?

You compute persistent homology and Betti numbers by applying this Skill to point clouds, which calculates topological features across a filtration and summarizes them using persistence diagrams, barcodes, and Betti numbers.

What is the best way to convert persistence diagrams into features for machine learning pipelines?

To convert persistence diagrams into features for machine learning pipelines, use topology-aware feature engineering to transform persistence outputs into vector representations like persistence landscapes, Betti curves, and persistence images.

Can I extract topological features from image data using cubical complexes?

Yes, you can extract topological features from image data using cubical complexes. This Skill supports processing image data to compute persistent homology and identify underlying physical or biological structures.

Does ripser work with scikit-learn for comparing persistence diagrams using Wasserstein distance?

Yes, ripser works within this Skill's environment alongside scikit-learn, utilizing libraries like persim to compute Wasserstein or bottleneck distances to compare persistence diagrams for downstream modeling.

When do I need Mapper to build a topological network from a point cloud?

You need Mapper to build a topological network from a point cloud when you want to visualize and extract multi-scale shape structures, such as loops and connected components, that standard distance-based methods often miss.

How do I apply TDA feature engineering to time-series embeddings for neuroscience data?

To apply TDA feature engineering to time-series embeddings for neuroscience data, use this Skill to compute persistent homology from the embeddings and convert the resulting persistence diagrams into vectorized representations for downstream modeling.