Update tutorial svi_part_iii to use correct data containing 6 ones and 4 zeros instead of 10 zeros.
" self.beta0 = 10.0\n",
" # the dataset consists of six 1s and four 0s\n",
" self.data = torch.zeros(10)\n",
- " self.data[0:6].data = torch.ones(6)\n",
+ " self.data[0:6] = torch.ones(6)\n",
" self.n_data = self.data.size(0)\n",
" # compute the alpha parameter of the exact beta posterior\n",
" self.alpha_n = self.data.sum() + self.alpha0\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.2"
+ "version": "3.6.6"
}
},
"nbformat": 4,
