Skip to content

Commit

Permalink
tested the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusMNoack committed Oct 12, 2023
1 parent 2d75e58 commit 30b36f2
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 138 deletions.
14 changes: 11 additions & 3 deletions docs/source/examples/MultiTaskTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"outputs": [],
"source": [
"##first install the newest version of fvgp\n",
"#!pip install fvgp==4.0.0"
"#!pip install fvgp==4.0.5"
]
},
{
Expand Down Expand Up @@ -133,7 +133,7 @@
"source": [
"## A simple kernel definition\n",
"It is vital in the multi-task case to think hard about kernel design. The kernel is now a function\n",
"over $\\mathcal{X} \\times \\mathcal{X} \\times T \\times T$, where $\\mathcal{X}$ is the input and $T$ is the output space. Print the input into kernel, it will have the dimensionality of this cartesian product space. \n",
"over X x X x T x T, where X is the input and T is the output space. Print the input into kernel, it will have the dimensionality of this cartesian product space. \n",
"The default kernel in fvgp is a deep kernel, which can be good, but there is no guarantee.\n",
"To use the default kernel, pytorch has to be installed manually (pip install torch)."
]
Expand Down Expand Up @@ -182,7 +182,7 @@
"\n",
"#my_gp2.update_gp_data(x_data3,y_data3)\n",
"print(\"Global Training in progress\")\n",
"my_gp2.train(hps_bounds, max_iter = 200)"
"my_gp2.train(hps_bounds, max_iter = 20)"
]
},
{
Expand Down Expand Up @@ -272,6 +272,14 @@
"fig.show()\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "80723910",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/examples/NonEuclideanInputSpaces.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"# GPs on Non-Euclidean Input Spaces\n",
"GPs on non-euclidean input spaces have become more and more relevant in recent years. fvgp can be used for that purpose as long as a correct kernel is defined. Of course if mean functions and noise functions are also provided, they have to operate on these non-Euclidean spaces. \n",
"\n",
"In this example, we run a small GP on words. It's a proof of concept, the result are not super relevant"
"In this example, we run a small GP on words. It's a proof of concept, the result are not super relevant."
]
},
{
Expand All @@ -19,7 +19,7 @@
"outputs": [],
"source": [
"#install the newest version of fvgp\n",
"#!pip install fvgp==4.0.0"
"#!pip install fvgp==4.0.5"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/SingleTaskTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"##first install the newest version of fvgp\n",
"#!pip install fvgp==4.0.0"
"#!pip install fvgp==4.0.5"
]
},
{
Expand Down
42 changes: 35 additions & 7 deletions docs/source/examples/gp2ScaleTest.ipynb

Large diffs are not rendered by default.

125 changes: 0 additions & 125 deletions fvgp/sparse_matrixOBS.py

This file was deleted.

0 comments on commit 30b36f2

Please sign in to comment.