Browse Source

Update.

v0.2.x
jajupmochi 5 years ago
parent
commit
d39d0a0aec
2 changed files with 13 additions and 27 deletions
  1. +7
    -21
      .travis.yml
  2. +6
    -6
      README.md

+ 7
- 21
.travis.yml View File

@@ -18,27 +18,13 @@ install:
- pip install -r requirements.txt
- pip install wheel

jobs:
include:
- python: 3.5
script:
- python setup.py bdist_wheel
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py
include:
- python: 3.6
script:
- python setup.py bdist_wheel
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/
include:
- python: 3.7
script:
- python setup.py bdist_wheel
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py
include:
- python: 3.8
script:
- python setup.py bdist_wheel
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py

script:
- python setup.py bdist_wheel
- if [ $TRAVIS_PYTHON_VERSION == 3.6 ];
then pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/;
else pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py;
fi

after_success:
- codecov

+ 6
- 6
README.md View File

@@ -38,7 +38,7 @@ $ python setup.py install

### Run the test

A series of [tests](https://github.com/jajupmochi/graphkit-learn/tree/master/gklearn/tests) can be run to check if the library works correctly.
A series of [tests](https://github.com/jajupmochi/graphkit-learn/tree/master/gklearn/tests) can be run to check if the library works correctly:
```
$ pip install -U pip pytest codecov coverage pytest-cov
$ pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/
@@ -50,17 +50,17 @@ A series of demos of using the library can be found on [Google Colab](https://dr

### Other demos

Simply clone this repository and voilà! Then check [`notebooks`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks) directory for demos:
Check [`notebooks`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks) directory for more demos:
* [`notebooks`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks) directory includes test codes of graph kernels based on linear patterns;
* [`notebooks/tests`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks/tests) directory includes codes that test some libraries and functions;
* [`notebooks/utils`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks/utils) directory includes some useful tools, such as a Gram matrix checker and a function to get properties of datasets;
* [`notebooks/else`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks/else) directory includes other codes that we used for experiments.

### Check the docs.
### Documentation

The docs of the library can be found [here](https://graphkit-learn.readthedocs.io/en/master/?badge=master).

## Main contents.
## Main contents

### List of graph kernels

@@ -97,9 +97,9 @@ A demo of generating graph preimages can be found on [Google Colab](https://cola

### Interface to `GEDLIB`

[`GEDLIB`](https://github.com/dbblumenthal/gedlib) is an easily extensible C++ library for (suboptimally) computing the graph edit distance between attributed graphs. A Python interface for `GEDLIB` is integrated in this library, based on [`gedlibpy`](https://github.com/Ryurin/gedlibpy) library.
[`GEDLIB`](https://github.com/dbblumenthal/gedlib) is an easily extensible C++ library for (suboptimally) computing the graph edit distance between attributed graphs. [A Python interface](https://github.com/jajupmochi/graphkit-learn/tree/master/gklearn/gedlib) for `GEDLIB` is integrated in this library, based on [`gedlibpy`](https://github.com/Ryurin/gedlibpy) library.

## Computation optimization methods
### Computation optimization methods

* Python’s `multiprocessing.Pool` module is applied to perform **parallelization** on the computations of all kernels as well as the model selection.
* **The Fast Computation of Shortest Path Kernel (FCSP) method** [8] is implemented in *the random walk kernel*, *the shortest path kernel*, as well as *the structural shortest path kernel* where FCSP is applied on both vertex and edge kernels.


Loading…
Cancel
Save