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_spkernel.ipynb 242 kB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 1,
  6. "metadata": {},
  7. "outputs": [
  8. {
  9. "name": "stdout",
  10. "output_type": "stream",
  11. "text": [
  12. "\n",
  13. "Acyclic\n",
  14. "\n",
  15. "--- This is a regression problem ---\n",
  16. "\n",
  17. "1. Loading dataset from file...\n",
  18. "\n",
  19. "2. Calculating gram matrices. This could take a while...\n",
  20. "\n",
  21. "getting sp graphs: 100%|██████████| 183/183 [00:00<00:00, 4451.98it/s]\n",
  22. "calculating kernels: 100%|█████████▉| 16811/16836.0 [00:24<00:00, 254.60it/s]--- shortest path kernel matrix of size 183 built in 24.209428787231445 seconds ---\n",
  23. "calculating kernels: 100%|██████████| 16836/16836.0 [00:24<00:00, 696.65it/s]\n",
  24. "[[ 1. 0.56568542 0.2 ..., 0.22823241 0.23199267\n",
  25. " 0.21342821]\n",
  26. " [ 0.56568542 1. 0. ..., 0.10758979 0.09113533\n",
  27. " 0.13205197]\n",
  28. " [ 0.2 0. 1. ..., 0.32966903 0.33510052\n",
  29. " 0.32014232]\n",
  30. " ..., \n",
  31. " [ 0.22823241 0.10758979 0.32966903 ..., 1. 0.95437578\n",
  32. " 0.94039745]\n",
  33. " [ 0.23199267 0.09113533 0.33510052 ..., 0.95437578 1. 0.95932949]\n",
  34. " [ 0.21342821 0.13205197 0.32014232 ..., 0.94039745 0.95932949 1. ]]\n"
  35. ]
  36. },
  37. {
  38. "data": {

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