Add your description here
Project description
RepViz: Model Representation Visualization
RepViz is a Python package for visualizing the internal representations of machine learning models. It provides tools to hook into model execution, capture activations and gradients, and generate various plots to analyze model behavior.
Features
- Model Agnostic: Designed to work with different model architectures.
- Rich Visualizations: Generate sctter plots, heatmaps, and other visualizations for activations, weights, and gradients to explore model representations.
- Extensible: Easily register new models and plotting functions.
- Inference and Analysis: Run inference with your models and analyze the results.
Installation
To install the package in editable mode, which is recommended for development, run the following command from the root of the repository:
cd repviz
pip install -e .
This will install the package and its dependencies.
Dependencies
The package requires Python 3.11+ and the following libraries:
scikit-learnseaborntorch
These will be automatically installed when you run the pip install command.
Usage
The primary entry points for using RepViz are the repviz.plots and repviz.inference modules.
Here's a high-level overview of a possible workflow:
- Register your model: Use the registry in
repviz.registryto make your model available to the visualization tools. - Run inference: Use the functions in
repviz.inferenceto run your model on your data and collect representations. - Generate plots: Use the plotting functions in
repviz.plotsto visualize the collected representations.
For more detailed examples, please refer to the notebooks in the notebooks/ directory.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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 repviz-0.1.2.tar.gz.
File metadata
- Download URL: repviz-0.1.2.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4aa6dbdfca6ded31832e3f77e9673e642217f72166af5856949078fb5aee29d
|
|
| MD5 |
16b250ca4ddc5ce3453cf5a092f4e8ad
|
|
| BLAKE2b-256 |
1a8fef8a9e64cae06cb6a9b4f9e92a3f6322f8c2f5e3743943e1cec5fcb48480
|
File details
Details for the file repviz-0.1.2-py3-none-any.whl.
File metadata
- Download URL: repviz-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2486a8a8fd33489d78722eeadc4bf8c94d226133980112dc283ed8a9296a0262
|
|
| MD5 |
2e7dbd9cefebcff2b373711c09db5d10
|
|
| BLAKE2b-256 |
72332f95f83d54cd60c510caa5813030219eef49c70d7f419732d35cd6557493
|