Code Monkey home page Code Monkey logo

msiddi's Introduction

MSIDDI

Overview

This repository contains source code for our paper "Graph neural network with sampled mix-hop subgraph for drug–drug interaction prediction"

Environment Setting

This code is based on Pytorch 1.4.0. You need prepare your virtual enviroment firstly. Requirement:

torch_geometric==1.4.2
scipy==1.4.1
networkx==2.4
torch==1.4.0
chemprop==1.1.0
rdkit==2009.Q1-1
scikit_learn==0.23.2

Pretrain the local representation learning module

In order to avoid inaccurate local representation learning negatively impacts the training of global representation learning module, you can running the pretrain.py file to pretrain the local representation learning module.

You can use the following code to finish pretraining process:

python pretrain.py

Running the code

You can run the following command to re-implement our work:

python main.py

msiddi's People

Contributors

fbnq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.