torch-geometric
PyTorch Geometric으로 그래프 신경망 구축하기
Également disponible depuis: K-Dense-AI
그래프 신경망은 소셜 네트워크와 분자와 같은 불규칙한 데이터 구조로부터 학습을 가능하게 합니다. PyTorch Geometric은 최소한의 보일러플레이트 코드로 GNN을 구축, 훈련 및 평가하기 위한 포괄적인 툴킷을 제공합니다.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "torch-geometric". Cora 데이터셋에서 노드 분류를 위한 GCN 모델 구축
Résultat attendu:
- 2개의 합성곱 레이어로 GCN 생성 (1433 입력 특성 → 16 은닉층 → 7 클래스)
- Cora 데이터셋 로드: 2708개 노드, 5429개 엣지, 7개 클래스
- 훈련 설정: 200 에폭, 학습률 0.01, 가중치 감쇠 5e-4
- 예상 테스트 정확도: 약 75-80%
Utilisation de "torch-geometric". 분자 특성 예측을 위한 Graph Attention Network 생성
Résultat attendu:
- 레이어당 8개의 어텐션 헤드로 GAT 구축
- 독성 예측을 위해 MoleculeNet 데이터셋 사용
- AddSelfLoops 및 NormalizeFeatures 변환 적용
- 모델은 정규화를 위해 드롭아웃 0.6 사용
Audit de sécurité
Risque faibleThis is a legitimate PyTorch Geometric documentation and utility skill containing 671 lines of documentation and 3 Python utility scripts. The extensive static findings (776 issues) are all false positives from the analyzer misinterpreting markdown code examples and PyTorch API calls. No actual command execution, credential access, or data exfiltration patterns exist in the codebase.
Problèmes à risque faible (1)
Facteurs de risque
📁 Accès au système de fichiers (4)
🌐 Accès réseau (2)
Score de qualité
Ce que vous pouvez construire
GNN 아키텍처 프로토타이핑
벤치마크 데이터셋에서 다양한 GNN 레이어와 훈련 전략을 실험합니다.
네트워크 데이터 분석
소셜 네트워크, 인용 네트워크, 추천 시스템에 그래프 학습을 적용합니다.
분자 특성 예측
신약 개발 및 분자 특성 예측 작업을 위한 모델을 구축합니다.
Essayez ces prompts
Help me build a Graph Convolutional Network for node classification on the Cora dataset using PyTorch Geometric. Include data loading, model definition, and training loop.
Create a Graph Isomorphism Network (GIN) for graph classification on the ENZYMES dataset. Show how to use DataLoader and global pooling.
Help me implement a custom MessagePassing layer in PyTorch Geometric that uses attention-based aggregation over neighbor features.
Show me how to use NeighborLoader for training GNNs on large-scale graphs like Reddit or OGB datasets with mini-batch processing.
Bonnes pratiques
- 더 복잡한 아키텍처를 탐색하기 전에 GCNConv 또는 GATConv로 베이스라인 모델부터 시작하세요
- 대규모 그래프에는 NeighborLoader를 사용하여 효율적인 미니배치 훈련을 가능하게 하세요
- 더 나은 결과를 위해 전처리 중 NormalizeFeatures 및 AddSelfLoops와 같은 변환을 적용하세요
Éviter
- 정규화 없이 너무 많은 GNN 레이어 사용 (과도한 평활화 발생)
- 대규모 데이터셋에 대해 샘플링 없이 전체 그래프에서 훈련 (메모리 문제)
- train/val/test 분할 마스크를 무시하고 모든 레이블을 훈련에 사용