Skip to content

Commit d39d0a0

Browse files
committed
Update.
1 parent f4d279e commit d39d0a0

File tree

2 files changed

+13
-27
lines changed

2 files changed

+13
-27
lines changed

.travis.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,13 @@ install:
1818
- pip install -r requirements.txt
1919
- pip install wheel
2020

21-
jobs:
22-
include:
23-
- python: 3.5
24-
script:
25-
- python setup.py bdist_wheel
26-
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py
27-
include:
28-
- python: 3.6
29-
script:
30-
- python setup.py bdist_wheel
31-
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/
32-
include:
33-
- python: 3.7
34-
script:
35-
- python setup.py bdist_wheel
36-
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py
37-
include:
38-
- python: 3.8
39-
script:
40-
- python setup.py bdist_wheel
41-
- pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py
21+
22+
script:
23+
- python setup.py bdist_wheel
24+
- if [ $TRAVIS_PYTHON_VERSION == 3.6 ];
25+
then pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/;
26+
else pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py;
27+
fi
4228

4329
after_success:
4430
- codecov

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $ python setup.py install
3838

3939
### Run the test
4040

41-
A series of [tests](https://github.com/jajupmochi/graphkit-learn/tree/master/gklearn/tests) can be run to check if the library works correctly.
41+
A series of [tests](https://github.com/jajupmochi/graphkit-learn/tree/master/gklearn/tests) can be run to check if the library works correctly:
4242
```
4343
$ pip install -U pip pytest codecov coverage pytest-cov
4444
$ 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
5050

5151
### Other demos
5252

53-
Simply clone this repository and voilà! Then check [`notebooks`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks) directory for demos:
53+
Check [`notebooks`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks) directory for more demos:
5454
* [`notebooks`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks) directory includes test codes of graph kernels based on linear patterns;
5555
* [`notebooks/tests`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks/tests) directory includes codes that test some libraries and functions;
5656
* [`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;
5757
* [`notebooks/else`](https://github.com/jajupmochi/graphkit-learn/tree/master/notebooks/else) directory includes other codes that we used for experiments.
5858

59-
### Check the docs.
59+
### Documentation
6060

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

63-
## Main contents.
63+
## Main contents
6464

6565
### List of graph kernels
6666

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

9898
### Interface to `GEDLIB`
9999

100-
[`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.
100+
[`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.
101101

102-
## Computation optimization methods
102+
### Computation optimization methods
103103

104104
* Python’s `multiprocessing.Pool` module is applied to perform **parallelization** on the computations of all kernels as well as the model selection.
105105
* **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.

0 commit comments

Comments
 (0)