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_acyclic.ipynb 115 kB

8 years ago
12345678910111213141516171819202122232425262728293031
  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. "--- This is a regression problem ---\n",
  14. "\n",
  15. "1. Loading dataset from file...\n",
  16. "\n",
  17. "2. Calculating gram matrices. This could take a while...\n",
  18. "--- shortest path kernel matrix of size 183 built in 13.54222846031189 seconds ---\n",
  19. "\n",
  20. "gram matrix with parameters {} is: \n",
  21. "[[1. 0.23570226 1. ... 0.07784989 0.07784989 0.07784989]\n",
  22. " [0.23570226 1. 0.23570226 ... 0. 0. 0.16514456]\n",
  23. " [1. 0.23570226 1. ... 0.07784989 0.07784989 0.07784989]\n",
  24. " ...\n",
  25. " [0.07784989 0. 0.07784989 ... 1. 0.38181818 0.12727273]\n",
  26. " [0.07784989 0. 0.07784989 ... 0.38181818 1. 0.12727273]\n",
  27. " [0.07784989 0.16514456 0.07784989 ... 0.12727273 0.12727273 1. ]]\n"
  28. ]
  29. },
  30. {
  31. "data": {

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