|
17 | 17 | Let's build a toy problem based on two linear models. |
18 | 18 | """ |
19 | 19 |
|
20 | | - |
21 | 20 | import matplotlib.pyplot as plt |
22 | 21 | import numpy |
23 | 22 | import numpy.random as npr |
|
154 | 153 | # |
155 | 154 | # ctypedef double float64_t |
156 | 155 | # |
157 | | -# cdef void _mean(self, SIZE_t start, SIZE_t end, float64_t *mean, |
| 156 | +# cdef void _mean(self, intp_t start, intp_t end, float64_t *mean, |
158 | 157 | # float64_t *weight) nogil: |
159 | 158 | # if start == end: |
160 | 159 | # mean[0] = 0. |
|
168 | 167 | # weight[0] = w |
169 | 168 | # mean[0] = 0. if w == 0. else m / w |
170 | 169 | # |
171 | | -# cdef float64_t _mse(self, SIZE_t start, SIZE_t end, float64_t mean, |
| 170 | +# cdef float64_t _mse(self, intp_t start, intp_t end, float64_t mean, |
172 | 171 | # float64_t weight) nogil: |
173 | 172 | # if start == end: |
174 | 173 | # return 0. |
|
193 | 192 | # |
194 | 193 | # ctypedef double float64_t |
195 | 194 | # |
196 | | -# cdef void _mean(self, SIZE_t start, SIZE_t end, float64_t *mean, |
| 195 | +# cdef void _mean(self, intp_t start, intp_t end, float64_t *mean, |
197 | 196 | # float64_t *weight) nogil: |
198 | 197 | # if start == end: |
199 | 198 | # mean[0] = 0. |
|
205 | 204 | # weight[0] = w |
206 | 205 | # mean[0] = 0. if w == 0. else m / w |
207 | 206 | # |
208 | | -# cdef float64_t _mse(self, SIZE_t start, SIZE_t end, float64_t mean, |
| 207 | +# cdef float64_t _mse(self, intp_t start, intp_t end, float64_t mean, |
209 | 208 | # float64_t weight) nogil: |
210 | 209 | # if start == end: |
211 | 210 | # return 0. |
|
0 commit comments