GithubHelp home page GithubHelp logo

trsasasusu / graphkernelencodingallsubgraphsqc Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 217.73 MB

Numerical experiments for Graph kernel encoding all subgraphs by superposition of quantum computing

Python 100.00%

graphkernelencodingallsubgraphsqc's Introduction

Numerical experiments for Graph kernel encoding all subgraphs by superposition of quantum computing

Requirements

  • python >=3.6
  • pip3
  • CUDA
  • NVIDIA GPU with >=32510MiB memory

Installing

git clone https://github.com/TRSasasusu/GraphKernelEncodingAllSubgraphsQC
cd GraphKernelEncodingAllSubgraphsQC
pip3 install -r requirements.txt
cp grakel-datasets-base.py /usr/local/lib/python3.6/dist-packages/grakel/datasets/base.py

grakel-datasets-base.py fixes error when loading Fingerprint dataset by excluding graphs with #edges less than 1.

If needed, use virtualenv.

Usage

Computing kernel values

python3 calc_kernel.py <dataset> <kernel>

Compute kernel values for each pair of graphs.
For <dataset>, select from MUTAG, AIDS, ER_MD, PTC_FM, BZR_MD, IMDB-BINARY, Fingerprint and IMDB-MULTI.
For <kernel>, select from QK_BH_ve, QK_BH_ved, QK_SH_ve, QK_SH_ved, RW, GS and SP.

Performance evaluation

python3 evaluate.py <dataset> <kernel>

Evaluate performance of the kernel.
Make sure to run calc_kernel.py first.

The results are stored in performance_results.

graphkernelencodingallsubgraphsqc's People

Contributors

hacker1337 avatar trsasasusu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.