Skip to content

wellcometrust/graph-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphTranslate: Predicting Clinical Trial Translation using Graph Neural Networks on Biomedical Literature

Description

This library provides functionality to train a graph neural network (GNN) model to predict "translation" of publications (defined as citation by a clinical trial).

Setup

  • Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh

  • Add dependencies for model training: uv sync. Models were trained on a cloud compute instance with a Nvidia A10G GPU.

  • To enable logging to Weights & Biases, run wandb login

Code structure

src/data contains functionality to load graph data from .parquet, and src/models contains GNN classifier model code.

Refer to the data documentation or model documentation to find out more about these components.

Model training

Model training is done via a custom LightningCLI. Training a GNN for translation classification is as simple as:

cd src
uv run run_experiment.py fit --config config.yaml

Refer to the sample config.yaml for the full set of hyperparameters and other configuration options. While the sample config contains some callbacks, additional ones can be specified.

Weights & Biases Hyperparameter Optimization

Experiments can be run sequentially over a range of parameters by setting parameters in the wandconfig.yaml file. Note that any parameters not set in this file will default to the config.yaml. Initialise agent using wandb sweep wandbconfig.yaml.

About

Predicting translation using graph neural networks on biomedical literature

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages