improved version of MHNN (full hypergrah message passing & hypergraph attention)
- We'll use
conda
to install dependencies and set up the environment. We recommend using the Python 3.9 Miniconda installer. - After installing
conda
, installmamba
to the base environment.mamba
is a faster, drop-in replacement forconda
:conda install mamba -n base -c conda-forge
- Create a new environment named
mhnnp
and install dependencies.mamba env create -f env.yml
- Activate the conda environment with
conda activate mhnnp
.
Dataset | Graphs | Task type | Task number | Metric |
---|---|---|---|---|
OPV | 90,823 | regression | 8 | MAE |
OCELOTv1 | 25,251 | regression | 15 | MAE |
PCQM4Mv2 | 3,746,620 | regression | 1 | MAE |
-
We provide training scripts
scripts/ocelot/train.sh
forMHNN
and hypergraph neural networks in DHG package by running:bash scripts/ocelot/train.sh [MODEL_NAME] [TASK_ID]
For example, we can train
HGNNP
for one task (14: HOMO target)bash scripts/ocelot/train.sh HGNNP 14
-
The ocelot dataset will be downloaded automatically at the first time of training.
-
Task ID for different tasks can be found here.
-
The training results are in the folder
exp_results/ocelot
.
This work was supported as part of NCCR Catalysis (grant number 180544), a National Centre of Competence in Research funded by the Swiss National Science Foundation.
If you find our work useful, please consider citing it:
@article{chen2024molecular,
author = {Chen, Junwu and Schwaller, Philippe},
title = "{Molecular hypergraph neural networks}",
journal = {The Journal of Chemical Physics},
volume = {160},
number = {14},
pages = {144307},
year = {2024},
doi = {10.1063/5.0193557},
url = {https://doi.org/10.1063/5.0193557},
}
If you have any question, welcome to contact me at:
Junwu Chen: [email protected]