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_treeletkernel_acyclic.ipynb 145 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. "--- 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. " --- treelet kernel matrix of size 183 built in 0.4853649139404297 seconds ---\n",
  20. "\n",
  21. "gram matrix with parameters {} is: \n",
  22. "[[4.00000000e+00 2.60653066e+00 1.00000000e+00 ... 1.26641655e-14\n",
  23. " 1.26641655e-14 1.26641655e-14]\n",
  24. " [2.60653066e+00 6.00000000e+00 1.00000000e+00 ... 1.26641655e-14\n",
  25. " 1.26641655e-14 1.26641655e-14]\n",
  26. " [1.00000000e+00 1.00000000e+00 4.00000000e+00 ... 3.00000000e+00\n",
  27. " 3.00000000e+00 3.00000000e+00]\n",
  28. " ...\n",
  29. " [1.26641655e-14 1.26641655e-14 3.00000000e+00 ... 1.80000000e+01\n",
  30. " 1.30548713e+01 8.19020657e+00]\n",
  31. " [1.26641655e-14 1.26641655e-14 3.00000000e+00 ... 1.30548713e+01\n",
  32. " 2.20000000e+01 9.71901120e+00]\n",
  33. " [1.26641655e-14 1.26641655e-14 3.00000000e+00 ... 8.19020657e+00\n",
  34. " 9.71901120e+00 1.60000000e+01]]\n"
  35. ]
  36. },
  37. {
  38. "data": {

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