You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_cyclic.py 664 B

12345678910111213141516
  1. import sys
  2. sys.path.insert(0, "../")
  3. from pygraph.utils.utils import kernel_train_test
  4. from pygraph.kernels.cyclicPatternKernel import cyclicpatternkernel
  5. import numpy as np
  6. datafile = '../../../../datasets/NCI-HIV/AIDO99SD.sdf'
  7. datafile_y = '../../../../datasets/NCI-HIV/aids_conc_may04.txt'
  8. kernel_file_path = 'kernelmatrices_path_acyclic/'
  9. kernel_para = dict(node_label = 'atom', edge_label = 'bond_type', labeled = True)
  10. kernel_train_test(datafile, kernel_file_path, cyclicpatternkernel, kernel_para, \
  11. hyper_name = 'cycle_bound', hyper_range = np.linspace(0, 1000, 21), normalize = False, \
  12. datafile_y = datafile_y, model_type = 'classification')

A Python package for graph kernels, graph edit distances and graph pre-image problem.