davideC00

Results 2 issues of davideC00

Hi, there is an issue in the highlighted phrase: ![image](https://github.com/probml/pml2-book/assets/44260691/bed813ce-bd8b-47b7-8993-4b67dfb2bd8f) If $`x_i \in \{0,1\}`$, the conditional distribution in the equation 12.27 is $σ(2J(a_i-d_i))$. I think the problem is that the...

```python @cfunc(intc(CPointer(float64), intp, CPointer(float64), voidptr)) def function(values_ptr, len_values, result, data): ... weights = carray(data, (1,), double)[0] ... weights = [0.6, 0.8, 0.4] seq = ctypes.c_double * len(weights) arr = seq(*weights)...