Skip to content

Masatsugar/neural_fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Graph Fingerprint

This software is implemented by DGL + PyTorch. Note that this version cannot use mini-batch nor GPU training as it is.

Requirements

Prerequisites include below:

After installing them, do commands below:

git clone https://github.com/Masatsugar/neural_fingerprint.git
python setup.py install

Examples

  • minimum usage
from neural_fingerprint import NFPRegressor
import rdkit.Chem as Chem
from rdkit.Chem import Descriptors
import numpy as np

mols = [Chem.MolFromSmiles(smi) for smi in ['CC', 'CCC', 'COC', 'C(=O)CC', 'CNC']]
logP = np.array([Descriptors.MolLogP(mol) for mol in mols])
nfp = NFPRegressor()
nfp.fit(mols, logP, epochs=10)
preds, fps = nfp.predict(mols, return_fps=True)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages