Views
No views yet
graph_conv12830.2attentionconfig.json file.| Metric | Value |
|---|---|
| Validation relation-weighted AUC | 0.8330 |
| Test relation-weighted AUC | 0.8339 |
| Validation AUC | 0.7966 |
| Test AUC | 0.7953 |
| Validation AP | 0.7969 |
| Test AP | 0.7949 |
1pip install torch==2.8.0
2pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/2.8.0+cpu.html
3pip install 'napistu==0.8.5'
4pip install 'napistu-torch[pyg,lightning]==0.3.4'NapistuDataStore:1from napistu_torch.load.gcs import gcs_model_to_store
2
3# Download data and create store
4napistu_data_store = gcs_model_to_store(
5 napistu_data_dir="path/to/napistu_data",
6 store_dir="path/to/store",
7 asset_name="human_consensus",
8 # Pin to stable version for reproducibility
9 asset_version="20250923"
10)1from napistu_torch.ml.hugging_face import HFModelLoader
2
3# Load checkpoint
4loader = HFModelLoader("seanhacks/relation_prediction_attention_128e")
5checkpoint = loader.load_checkpoint()
6
7# Load config to reproduce experiment
8experiment_config = loader.load_config()1# Create a training config that uses the pretrained model
2cat > my_config.yaml << EOF
3name: my_finetuned_model
4
5model:
6 use_pretrained_model: true
7 pretrained_model_source: huggingface
8 pretrained_model_path: seanhacks/relation_prediction_attention_128e
9 pretrained_model_freeze_encoder_weights: false # Allow fine-tuning
10
11data:
12 sbml_dfs_path: path/to/sbml_dfs.pkl
13 napistu_graph_path: path/to/graph.pkl
14 napistu_data_name: edge_prediction
15
16training:
17 epochs: 100
18 lr: 0.001
19EOF
20
21# Train with pretrained weights
22napistu-torch train my_config.yaml1@software{napistu_torch,
2 title = {Napistu-Torch: Graph Neural Networks for Biological Pathway Analysis},
3 author = {Hackett, Sean R.},
4 url = {https://github.com/napistu/Napistu-Torch},
5 year = {2025},
6 note = {Model: graph_conv-attention_h128_l3_edge_prediction}
7}