Experimental Modules¶
TrustLens maintains an experimental ecosystem for cutting-edge research modules that are not yet part of the core production pipeline.
Current Experimental Modules¶
Explainability / Grad-CAM (trustlens.explainability.gradcam)¶
Purpose: Visual attribution maps for convolutional neural networks.
Why Experimental: Requires heavy external dependencies (PyTorch, Torchvision) and is currently limited to vision models.
Usage:
from trustlens.explainability import GradCAM explainer = GradCAM(model, target_layer) heatmap = explainer.compute(input_tensor)
Experimental Promotion Criteria¶
A module is promoted from Experimental to Core when it meets the following standards:
Zero-Crash Stability: Passes internal stress tests without unhandled exceptions.
Standardized API: Implements the standard
compute()andget_results_dict()interfaces.Internal Documentation: Complete docstrings for all public methods.
Unit Test Coverage: Minimum 80% coverage in isolation.
Dependency Management: Dependencies must be optional (
extras_require) to keep the core install lightweight.
Contributing to Experimental¶
We welcome contributions to experimental modules! See Contributing for how to get involved.