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 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-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.1.tar.gz (8.5 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.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for repviz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e294b4364d8f82b8f755da03da3ac6749583c57ffc1726c9e59f5182e1bdc3aa
MD5 525388cdf041999fe9b102f718a70912
BLAKE2b-256 89b7114189843e1271670dbaf7b07b2d9163e3a53ee780dee75244d614f88d28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: repviz-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78629aadb2ff0cbe23b6c051a92c0cdef40eb61f96e26292661b0df4571ea611
MD5 a83e6f3361c5ef8abefcbfa2f51dd502
BLAKE2b-256 e3046335aa4956d25b682d5c625f1b5b16702b08543d059d0011038c1b4cc76e

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