Skip to content

Commit 5260674

Browse files
authored
Merge pull request #2547 from partev/patch-2
use common notation for normal distribution N(\mu, \sigma^2)
2 parents d95be0a + 727a75b commit 5260674

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/02_Scalable_Exact_GPs/Simple_GP_Regression_CUDA.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"$$\n",
2222
"\\begin{align}\n",
2323
" y &= \\sin(2\\pi x) + \\epsilon \\\\ \n",
24-
" \\epsilon &\\sim \\mathcal{N}(0, 0.2) \n",
24+
" \\epsilon &\\sim \\mathcal{N}(0, 0.04) \n",
2525
"\\end{align}\n",
2626
"$$\n",
2727
"\n",
28-
"with 11 training examples, and testing on 51 test examples."
28+
"with 100 training examples, and testing on 51 test examples."
2929
]
3030
},
3131
{
@@ -50,7 +50,7 @@
5050
"source": [
5151
"### Set up training data\n",
5252
"\n",
53-
"In the next cell, we set up the training data for this example. We'll be using 11 regularly spaced points on [0,1] which we evaluate the function on and add Gaussian noise to get the training labels."
53+
"In the next cell, we set up the training data for this example. We'll be using 100 regularly spaced points on [0,1] which we evaluate the function on and add Gaussian noise to get the training labels."
5454
]
5555
},
5656
{
@@ -59,10 +59,10 @@
5959
"metadata": {},
6060
"outputs": [],
6161
"source": [
62-
"# Training data is 11 points in [0,1] inclusive regularly spaced\n",
62+
"# Training data is 100 points in [0,1] inclusive regularly spaced\n",
6363
"train_x = torch.linspace(0, 1, 100)\n",
6464
"# True function is sin(2*pi*x) with Gaussian noise\n",
65-
"train_y = torch.sin(train_x * (2 * math.pi)) + torch.randn(train_x.size()) * 0.2"
65+
"train_y = torch.sin(train_x * (2 * math.pi)) + torch.randn(train_x.size()) * math.sqrt(0.04)"
6666
]
6767
},
6868
{

0 commit comments

Comments
 (0)