ibm / materials.mhg-ged

huggingface.co
Total runs: 561
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: November 05 2024
feature-extraction

Introduction of materials.mhg-ged

Model Details of materials.mhg-ged

mhg-gnn

This repository provides PyTorch source code assosiated with our publication, "MHG-GNN: Combination of Molecular Hypergraph Grammar with Graph Neural Network"

Paper: Arxiv Link

mhg-gnn

Introduction

We present MHG-GNN, an autoencoder architecture that has an encoder based on GNN and a decoder based on a sequential model with MHG. Since the encoder is a GNN variant, MHG-GNN can accept any molecule as input, and
demonstrate high predictive performance on molecular graph data. In addition, the decoder inherits the theoretical guarantee of MHG on always generating a structurally valid molecule as output.

Table of Contents
  1. Getting Started
    1. Pretrained Models and Training Logs
    2. Installation
  2. Feature Extraction
Getting Started

This code and environment have been tested on Intel E5-2667 CPUs at 3.30GHz and NVIDIA A100 Tensor Core GPUs.

Pretrained Models and Training Logs

We provide checkpoints of the MHG-GNN model pre-trained on a dataset of ~1.34M molecules curated from PubChem. (later) For model weights: HuggingFace Link

Add the MHG-GNN pre-trained weights.pt to the models/ directory according to your needs.

Installation

We recommend to create a virtual environment. For example:

python3 -m venv .venv
. .venv/bin/activate

Type the following command once the virtual environment is activated:

git clone [email protected]:CMD-TRL/mhg-gnn.git
cd ./mhg-gnn
pip install .
Feature Extraction

The example notebook mhg-gnn_encoder_decoder_example.ipynb contains code to load checkpoint files and use the pre-trained model for encoder and decoder tasks.

To load mhg-gnn, you can simply use:

import torch
import load

model = load.load()

To encode SMILES into embeddings, you can use:

with torch.no_grad():
    repr = model.encode(["CCO", "O=C=O", "OC(=O)c1ccccc1C(=O)O"])

For decoder, you can use the function, so you can return from embeddings to SMILES strings:

orig = model.decode(repr)

Runs of ibm materials.mhg-ged on huggingface.co

561
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About materials.mhg-ged huggingface.co Model

More materials.mhg-ged license Visit here:

https://choosealicense.com/licenses/apache-2.0

materials.mhg-ged huggingface.co

materials.mhg-ged huggingface.co is an AI model on huggingface.co that provides materials.mhg-ged's model effect (), which can be used instantly with this ibm materials.mhg-ged model. huggingface.co supports a free trial of the materials.mhg-ged model, and also provides paid use of the materials.mhg-ged. Support call materials.mhg-ged model through api, including Node.js, Python, http.

materials.mhg-ged huggingface.co Url

https://huggingface.co/ibm/materials.mhg-ged

ibm materials.mhg-ged online free

materials.mhg-ged huggingface.co is an online trial and call api platform, which integrates materials.mhg-ged's modeling effects, including api services, and provides a free online trial of materials.mhg-ged, you can try materials.mhg-ged online for free by clicking the link below.

ibm materials.mhg-ged online free url in huggingface.co:

https://huggingface.co/ibm/materials.mhg-ged

materials.mhg-ged install

materials.mhg-ged is an open source model from GitHub that offers a free installation service, and any user can find materials.mhg-ged on GitHub to install. At the same time, huggingface.co provides the effect of materials.mhg-ged install, users can directly use materials.mhg-ged installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

materials.mhg-ged install url in huggingface.co:

https://huggingface.co/ibm/materials.mhg-ged

Url of materials.mhg-ged

materials.mhg-ged huggingface.co Url

Provider of materials.mhg-ged huggingface.co

ibm
ORGANIZATIONS

Other API from ibm

huggingface.co

Total runs: 28.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 12 2024
huggingface.co

Total runs: 17.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 17 2024
huggingface.co

Total runs: 15.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 25 2024
huggingface.co

Total runs: 11.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 16 2024
huggingface.co

Total runs: 11.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:March 05 2024
huggingface.co

Total runs: 2.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 17 2024
huggingface.co

Total runs: 344
Run Growth: 0
Growth Rate: 0.00%
Updated:December 21 2022
huggingface.co

Total runs: 157
Run Growth: 0
Growth Rate: 0.00%
Updated:December 28 2023
huggingface.co

Total runs: 103
Run Growth: 0
Growth Rate: 0.00%
Updated:October 12 2022
huggingface.co

Total runs: 90
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2023
huggingface.co

Total runs: 57
Run Growth: 0
Growth Rate: 0.00%
Updated:March 05 2024
huggingface.co

Total runs: 56
Run Growth: 0
Growth Rate: 0.00%
Updated:October 09 2024
huggingface.co

Total runs: 23
Run Growth: 0
Growth Rate: 0.00%
Updated:September 15 2023
huggingface.co

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:September 15 2023
huggingface.co

Total runs: 16
Run Growth: 0
Growth Rate: 0.00%
Updated:September 15 2023