gnn-ml-integration
GNN machine learning integration and model training. Use when training ML models on GNN data, checking ML framework availability, or integrating GNN pipeline…
от ActiveInferenceInstitute★ 36 звёзд на GitHub
Установить gnn-ml-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GNN Machine Learning Integration (Step 14)
Purpose
Integrates machine learning capabilities with the GNN pipeline, enabling feature extraction from parsed models, ML model training on GNN data, and framework availability checking.
Key Commands
# Run ML integration
python src/gnn/14_ml_integration.py --target-dir input/gnn_files --output-dir output --verbose
# As part of pipeline
python src/gnn/main.py --only-steps 14 --verbose
API
from gnn.ml_integration import process_ml_integration, check_ml_frameworks, feature_vector, predict_with_model
# Process ML integration step (used by pipeline)
result = process_ml_integration(target_dir, output_dir, verbose=True)
# Check available ML frameworks
frameworks = check_ml_frameworks()
# Returns: {'pytorch': {'available': True, 'version': '2.x'},
# 'tensorflow': {'available': False},
# 'jax': {'available': True, 'version': '0.4.x'},
# 'sklearn': {'available': True, 'version': '1.x'}}
# Build the canonical feature vector and predict from a saved .pkl artifact
vec = feature_vector(features)
label = predict_with_model(Path("output/14_ml_integration_output/gnn_decision_tree.pkl"), features, label_names=labels)
Key Exports
process_ml_integration— main pipeline processing functioncheck_ml_frameworks— checks availability of PyTorch, TensorFlow, JAX, scikit-learnextract_gnn_features— structural feature extraction for one GNN filefeature_vector— canonical numeric vector inNUMERIC_FEATURE_NAMESordercomplexity_label— small/medium/large viaCOMPLEXITY_THRESHOLDS(100, 1000)summarize_features— min/max/mean overSUMMARY_STATISTIC_KEYSload_classifier,predict_with_model,predict_batch— inference from saved.pklartifacts (scikit-learn required only at call time;label_namescomes fromml_integration_results.json)InferenceError— raised for missing/invalid artifacts or prediction failuresget_module_info— version, feature flags, tool inventory- Constants:
NUMERIC_FEATURE_NAMES,COMPLEXITY_THRESHOLDS,COMPLEXITY_LABELS,SUMMARY_STATISTIC_KEYS
Supported ML Frameworks
| Framework | Check Key | Purpose |
|---|---|---|
| PyTorch | pytorch |
Deep learning, CUDA support detection |
| TensorFlow | tensorflow |
Neural network training |
| JAX | jax |
Differentiable computing |
| scikit-learn | sklearn |
Classical ML algorithms |
Dependencies
# ML training deps
uv sync --extra ml-ai
# Includes: transformers, scipy, scikit-learn
# Note: torch ships in its own `torch` extra (uv sync --extra torch;
# torch>=2.13.0 resolves GHSA-rrmf-rvhw-rf47).
Output
- ML results in
output/14_ml_integration_output/ - Framework availability reports
MCP Tools
This module registers tools with the GNN MCP server (see mcp.py):
check_ml_frameworksget_ml_module_infolist_ml_integration_targetsprocess_ml_integration
References
Documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- AGENTS.md
- README.md
- SPEC.md
- __init__.py
- frameworks.py
- inference.py
- mcp.py
- processor.py
FAQ
Что делает скилл gnn-ml-integration?
GNN machine learning integration and model training. Use when training ML models on GNN data, checking ML framework availability, or integrating GNN pipeline outputs with machine learning workflows.
Как установить скилл gnn-ml-integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gnn-ml-integration запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…