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_marginalizedkernel_acyclic.ipynb 466 kB

8 years ago
123456789101112131415161718192021222324252627282930313233343536
  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. "\n",
  19. "gram matrix with parameters {'p_quit': 0.10000000000000001} is: \n",
  20. "calculate kernels: 100%|██████████| 16836/16836.0 [1:46:28<00:00, 1.48it/s]\n",
  21. " --- marginalized kernel matrix of size 183 built in 6388.502187728882 seconds ---\n",
  22. "[[ 1. 0.64549125 0.1238602 ..., 0.18744115 0.18784508\n",
  23. " 0.18052003]\n",
  24. " [ 0.64549125 1. 0.13569668 ..., 0.20535363 0.20579615\n",
  25. " 0.19777109]\n",
  26. " [ 0.1238602 0.13569668 1. ..., 0.27603195 0.27457716\n",
  27. " 0.29886586]\n",
  28. " ..., \n",
  29. " [ 0.18744115 0.20535363 0.27603195 ..., 1. 0.99990821\n",
  30. " 0.99626713]\n",
  31. " [ 0.18784508 0.20579615 0.27457716 ..., 0.99990821 1. 0.99550561]\n",
  32. " [ 0.18052003 0.19777109 0.29886586 ..., 0.99626713 0.99550561 1. ]]\n"
  33. ]
  34. },
  35. {
  36. "data": {

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