Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
tags:
|
| 5 |
+
- sage
|
| 6 |
+
- cora
|
| 7 |
+
- node-classification
|
| 8 |
+
- graph-neural-network
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# SAGE Node Classification on Cora
|
| 12 |
+
|
| 13 |
+
## Model Details
|
| 14 |
+
- **Architecture**: SAGE
|
| 15 |
+
- **Dataset**: Cora
|
| 16 |
+
- **Task**: Node Classification
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
from src.prediction import Predictor
|
| 22 |
+
|
| 23 |
+
# Load model
|
| 24 |
+
predictor = Predictor.from_checkpoint("best_model.pt")
|
| 25 |
+
|
| 26 |
+
# Make predictions
|
| 27 |
+
result = predictor.predict(graph_data)
|
| 28 |
+
print(f"Predictions: {result.predictions}")
|
| 29 |
+
print(f"Confidence: {result.confidence}")
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Files
|
| 33 |
+
- `best_model.pt` - Trained model checkpoint
|
| 34 |
+
- `hyperparameters.json` - Training configuration
|
| 35 |
+
- `experiment_summary.json` - Final metrics
|
| 36 |
+
|
| 37 |
+
## Training
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
python scripts/train.py \
|
| 41 |
+
--dataset cora \
|
| 42 |
+
--model sage \
|
| 43 |
+
--epochs 150 \
|
| 44 |
+
--lr_scheduler
|
| 45 |
+
```
|