Skip to main content

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 UMAP plots, heatmaps, and other visualizations 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:

pip install -e .

This will install the package and its dependencies.

Dependencies

The package requires Python 3.11+ and the following libraries:

  • scikit-learn
  • seaborn
  • torch

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:

  1. Register your model: Use the registry in repviz.registry to make your model available to the visualization tools.
  2. Run inference: Use the functions in repviz.inference to run your model on your data and collect representations.
  3. Generate plots: Use the plotting functions in repviz.plots to 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


Download files

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

Source Distribution

repviz-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

repviz-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file repviz-0.1.0.tar.gz.

File metadata

  • Download URL: repviz-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for repviz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ccc1c16d6c4dd7b97004ff4d279c7df7a164257cfb09ab4f7c760b7df2a282f
MD5 b8c79b8aee05b3c500ec5fbb409a5009
BLAKE2b-256 395049ce64a00dfc5f653faf17572bf1e9ad480211436150e4f30333dfa2cc98

See more details on using hashes here.

File details

Details for the file repviz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: repviz-0.1.0-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

Hashes for repviz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a03196a635549ba2971cf17d1232f142d4b6ca5e64f2adecab4d6f6768c7e46b
MD5 3bfc38b0ae752da00e390a909e2fe545
BLAKE2b-256 d32b443ea7a458208aeb70271f7916ee19e6f7b8a9a5d90f9fe202d59e626621

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