Skip to content

Commit

Permalink
Updated in Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
ziatdinovmax committed Apr 3, 2020
1 parent e013abd commit 6946a94
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions examples/notebooks/GP_sparse2Dimages.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/ziatdinovmax/GPim/blob/dev/examples/notebooks/GP_sparse2Dimages.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
"<a href=\"https://colab.research.google.com/github/ziatdinovmax/GPim/blob/master/examples/notebooks/GP_sparse2Dimages.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
Expand Down Expand Up @@ -60,10 +60,10 @@
"id": "dKN8pVmC7iSO",
"colab_type": "code",
"cellView": "form",
"outputId": "4e87c805-667f-418e-b29d-c354d0305874",
"outputId": "36bc11df-039b-4de6-8cc0-482b472c90fe",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 90
"height": 87
}
},
"source": [
Expand All @@ -85,8 +85,8 @@
{
"output_type": "stream",
"text": [
"\u001b[K |████████████████████████████████| 501kB 2.9MB/s \n",
"\u001b[K |████████████████████████████████| 235kB 42.3MB/s \n",
"\u001b[K |████████████████████████████████| 501kB 6.7MB/s \n",
"\u001b[K |████████████████████████████████| 235kB 47.6MB/s \n",
"\u001b[?25h Building wheel for gpim (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Building wheel for gpytorch (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
],
Expand All @@ -109,7 +109,7 @@
"metadata": {
"id": "X_BFloHFz8cX",
"colab_type": "code",
"outputId": "e872479b-ce1c-466e-e7ac-95cfef8fe22f",
"outputId": "6c9707bd-a444-4369-bb49-dc0ed1f9eb48",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 483
Expand All @@ -120,7 +120,7 @@
"plt.figure(figsize=(8, 8))\n",
"plt.imshow(imgdata, origin='bottom');"
],
"execution_count": 13,
"execution_count": 2,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -151,7 +151,7 @@
"metadata": {
"id": "lEkWK9bWaNAH",
"colab_type": "code",
"outputId": "9d5a2906-8c8f-4ebc-c674-daa6a45fe4fb",
"outputId": "3c952084-947d-428c-fd56-b0451dbee9ce",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 483
Expand All @@ -163,7 +163,7 @@
"plt.figure(figsize=(8, 8))\n",
"plt.imshow(R, origin='bottom');"
],
"execution_count": 14,
"execution_count": 3,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -218,7 +218,7 @@
"metadata": {
"id": "a4okYeUxEGzM",
"colab_type": "code",
"outputId": "2696e9d8-23c1-480b-e103-ea3d04fcd0fd",
"outputId": "66454aac-4a08-4bdd-dc87-124d52f9c046",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
Expand All @@ -243,15 +243,15 @@
"gprutils.plot_kernel_hyperparams(hyperparams)\n",
"gprutils.plot_inducing_points(hyperparams)"
],
"execution_count": 10,
"execution_count": 5,
"outputs": [
{
"output_type": "stream",
"text": [
"# of inducing points for sparse GP regression: 1053\n",
"Model training...\n",
"average time per iteration: 0.0583 s\n",
"training completed in 16.72 s\n",
"average time per iteration: 0.06559999999999999 s\n",
"training completed in 19.09 s\n",
"Final parameter values:\n",
" amp: 0.048, lengthscale: [3.8383 2.9884], noise: 0.0056217\n",
"Calculating predictive mean and variance... Done\n"
Expand Down Expand Up @@ -311,10 +311,10 @@
"metadata": {
"id": "_EG0vezmG2Gu",
"colab_type": "code",
"outputId": "f93c67a9-6ba6-45ad-e1a9-b61ac56a36c2",
"outputId": "903b9b77-8293-4a3a-98a3-b27a4148e9e2",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 930
"height": 922
}
},
"source": [
Expand All @@ -331,14 +331,14 @@
"gprutils.plot_reconstructed_data2d(R, mean, cmap='viridis')\n",
"gprutils.plot_kernel_hyperparams(hyperparams)"
],
"execution_count": 12,
"execution_count": 6,
"outputs": [
{
"output_type": "stream",
"text": [
"Model training...\n",
"average time per iteration: 0.286 s\n",
"training completed in 50.93 s\n",
"average time per iteration: 0.383 s\n",
"training completed in 66.43 s\n",
"Final parameter values:\n",
" lengthscale: [2.7024 2.7024], noise: 0.0024733\n",
"Calculating predictive mean and uncertainty...\n",
Expand Down

0 comments on commit 6946a94

Please sign in to comment.