Skip to main content

No project description provided

Project description

Temporal Mapper Logo

Temporal Mapper

V.1.0.2 - January 17th '26


This is a library for using the Mapper for temporal topic modelling. Though things broadly work now, the edge cases have not been throughly tested.

Direct questions to Kaleb D. Ruscitti: kaleb.ruscitti at uwaterloo.ca .

Complete documentation is under construction on Read The Docs.

Example:

arXiv Papers

From the arXiv API, we can retrieve ~500,000 article titles and abstracts, use SBERT to embed them, and then UMAP to reduce to 2D.

Using DataMapPlot and TopicNaming we can produce a static plot of this data:

A DataMapPlot of ArXiV papers

Now, using this repository we can additionally analyse the temporal information. Using the Mapper algorithm with time as our lens function, we create a temporal graph of the topics (clusters) through time. The code includes two types of plots to visualize this graph:

Centroid Plot Temporal-Semantic Plot

Installation

Install from PyPI: pip install temporal-mapper

Or, clone the repo and install:

git clone https://github.com/TutteInstitute/temporal-mapper.git

cd temporal-mapper && pip install .

Development Instructions

Getting set up

(Mostly for my future self...)

Clone the repo: git clone https://github.com/TutteInstitute/temporal-mapper.git

Then make a virtual environment and install the package and pytest.

cd temporal-mapper && python -m venv .venv

source .venv/bin/activate

pip install -r requirements.txt && pip install -e .

Before making any changes, check that the tests run successfully:

cd tests && python -m pytest mapper.py

Project details


Download files

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

Source Distribution

temporal_mapper-1.0.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

temporal_mapper-1.0.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file temporal_mapper-1.0.2.tar.gz.

File metadata

  • Download URL: temporal_mapper-1.0.2.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for temporal_mapper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 70acbf128bdf9ab4a65035bbf5c4435635ee089917175f105098a4801d5ca939
MD5 ed090334daa5ab8bc8f72e93f52da4f1
BLAKE2b-256 53c3f49111752ba69a2c00ef421e32562702ddc34088dd7974128879f77cbc0b

See more details on using hashes here.

File details

Details for the file temporal_mapper-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for temporal_mapper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76895165c819403358d57d69b29020dd670c3acca5c9cdae4c99ae61dff29483
MD5 18687698bbd90beb73ad358687b333b7
BLAKE2b-256 07b94ed9bfbf52e9a23efa066c794e5b9a38a27a66b96bf57760f635db3ee781

See more details on using hashes here.

Supported by

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