Browse Source

Fix paths when using pre-given datasets in test_graph_kernels.py.

v0.2.x
jajupmochi 4 years ago
parent
commit
3cfe230313
2 changed files with 5 additions and 1 deletions
  1. +2
    -0
      .gitignore
  2. +3
    -1
      gklearn/tests/test_graph_kernels.py

+ 2
- 0
.gitignore View File

@@ -16,6 +16,8 @@ datasets/*
!datasets/AIDS/
!datasets/monoterpenoides/
!datasets/Monoterpenoides/
!datasets/Fingerprint/
!datasets/Cuneiform/
notebooks/results/*
notebooks/check_gm/*
notebooks/test_parallel/*


+ 3
- 1
gklearn/tests/test_graph_kernels.py View File

@@ -20,8 +20,10 @@ def chooseDataset(ds_name):
"""Choose dataset according to name.
"""
from gklearn.dataset import Dataset
import os

root = '../../datasets/'
current_path = os.path.dirname(os.path.realpath(__file__)) + '/'
root = current_path + '../../datasets/'

# no node labels (and no edge labels).
if ds_name == 'Alkane':


Loading…
Cancel
Save