[Examples] Fix Simple GP function noise
"\n",
"\\begin{align}\n",
"y &= \\sin(2\\pi x) + \\epsilon \\\\\n",
- " \\epsilon &\\sim \\mathcal{N}(0, 0.2) \n",
+ " \\epsilon &\\sim \\mathcal{N}(0, 0.04) \n",
"\\end{align}\n",
"\n",
"with 100 training examples, and testing on 51 test examples.\n",
"# Training data is 100 points in [0,1] inclusive regularly spaced\n",
"train_x = torch.linspace(0, 1, 100)\n",
"# True function is sin(2*pi*x) with Gaussian noise\n",
- "train_y = torch.sin(train_x * (2 * math.pi)) + torch.randn(train_x.size()) * 0.2"
+ "train_y = torch.sin(train_x * (2 * math.pi)) + torch.randn(train_x.size()) * math.sqrt(0.04)"
]
},
{
