gnn-visualization
GNN graph and matrix visualization generation. Use when creating network graph plots, matrix heatmaps, state space diagrams, or other visual representations…
от ActiveInferenceInstitute★ 36 звёзд на GitHub
Установить gnn-visualization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GNN Visualization (Step 8)
Purpose
Generates static visualizations of GNN models including network graphs, matrix heatmaps, state space diagrams, and connection maps using matplotlib and networkx.
Key Commands
# Run visualization
python src/gnn/8_visualization.py --target-dir input/gnn_files --output-dir output --verbose
# As part of pipeline
python src/gnn/main.py --only-steps 8 --verbose
API
from pathlib import Path
from gnn.visualization import (
GNNVisualizer,
MatrixVisualizer,
generate_graph_visualization,
generate_matrix_visualization,
generate_visualizations,
process_visualization,
)
# Use the GNNVisualizer class
viz = GNNVisualizer(output_dir="output/")
paths = viz.generate_graph_visualization(graph_data) # list of generated files
paths = viz.generate_matrix_visualization(matrix_data)
# Module-level helpers write a single file each; return True/False
generate_graph_visualization(graph_data, "output/viz/model_graph.png")
generate_matrix_visualization(matrix_data, "output/viz/model_matrix.png")
# Run full visualization step (used by the pipeline; accepts injected logger)
process_visualization(
Path("input/gnn_files"), Path("output/8_visualization_output"), verbose=True
)
# Diagnose missing backends (first check for "no visualizations generated")
from gnn.visualization import backend_status
print(backend_status())
Key Exports
GNNVisualizer— main visualization classMatrixVisualizer— matrix-specific visualizationgenerate_graph_visualization— network graph plotsgenerate_matrix_visualization— matrix heatmapsprocess_visualization— pipeline processing (JSON-first when step-3*_parsed.jsonexists)backend_status— availability report for matplotlib/numpy/seaborn/networkx/plotly
Safe-to-Fail Pattern
Branch failures (network, matrix, combined) are isolated per subsection and logged; the run-level summary records processing errors while remaining artifacts are kept.
Dependencies
# matplotlib + networkx (included in core)
uv sync
# For additional viz backends
uv sync
Output
- PNG/SVG images in
output/8_visualization_output/ - HTML recovery reports when matplotlib unavailable
MCP Tools
This module registers tools with the GNN MCP server (see mcp.py):
get_visualization_module_infoget_visualization_optionslist_visualization_artifactsprocess_visualization
References
Documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- AGENTS.md
- README.md
- SPEC.md
- __init__.py
- __main__.py
- analysis/AGENTS.md
- analysis/README.md
- analysis/SPEC.md
- analysis/__init__.py
- analysis/combined_analysis.py
- backends.py
- cli.py
- combined_analysis.py
- compat/AGENTS.md
- compat/README.md
- compat/SPEC.md
- compat/__init__.py
- compat/viz_compat.py
- connection_format.py
- core/AGENTS.md
- core/README.md
- core/SPEC.md
- core/__init__.py
- core/parsed_model.py
- core/process.py
- core/sampling.py
- graph/AGENTS.md
- graph/README.md
- graph/SPEC.md
- graph/__init__.py
- graph/bipartite.py
- graph/network_visualizations.py
- graph/stats.py
- matrix/AGENTS.md
- matrix/README.md
- matrix/SPEC.md
- matrix/__init__.py
- matrix/compat.py
- matrix/extract.py
- matrix/threejs_template.py
FAQ
Что делает скилл gnn-visualization?
GNN graph and matrix visualization generation. Use when creating network graph plots, matrix heatmaps, state space diagrams, or other visual representations of GNN models.
Как установить скилл gnn-visualization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gnn-visualization запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…