gnn-code-generation

Community

Automate multi-framework GNN code generation

AuthorActiveInferenceInstitute
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Generates multi-framework code from GNN specifications to accelerate simulation development and deployment across PyMDP, RxInfer.jl, ActiveInference.jl, JAX, and DisCoPy.

Core Features & Use Cases

  • POMDP-aware rendering: extracts A, B, C, D (and optional E) from GNNs and generates framework-specific implementations.
  • Cross-framework support: produces Python and Julia code artifacts for PyMDP, RxInfer.jl, ActiveInference.jl, JAX, and DisCoPy, with optional backends like PyTorch, NumPyro, and Stan.
  • Model-to-code pipelines and validation: normalizes matrices, validates shapes, writes rendering summaries and per-model documentation.

Quick Start

Render all GNN files in input/gnn_files to output with all frameworks using the default configuration.

Dependency Matrix

Required Modules

pypdfpdfplumberpdf2image

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gnn-code-generation
Download link: https://github.com/ActiveInferenceInstitute/GeneralizedNotationNotation/archive/main.zip#gnn-code-generation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.