No project description provided
Project description
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:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70acbf128bdf9ab4a65035bbf5c4435635ee089917175f105098a4801d5ca939
|
|
| MD5 |
ed090334daa5ab8bc8f72e93f52da4f1
|
|
| BLAKE2b-256 |
53c3f49111752ba69a2c00ef421e32562702ddc34088dd7974128879f77cbc0b
|
File details
Details for the file temporal_mapper-1.0.2-py3-none-any.whl.
File metadata
- Download URL: temporal_mapper-1.0.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76895165c819403358d57d69b29020dd670c3acca5c9cdae4c99ae61dff29483
|
|
| MD5 |
18687698bbd90beb73ad358687b333b7
|
|
| BLAKE2b-256 |
07b94ed9bfbf52e9a23efa066c794e5b9a38a27a66b96bf57760f635db3ee781
|