Closed fabianp closed 8 years ago
Thanks a lot for the investigation. I prefer this design, if this is ok with you too.
Yep, I also prefer it.
Fixed the tests and added an example, should be good to go.
hey @mblondel , green light to merge this?
Yes! Thanks!
Second implementation, as discussed in #68
I made some benchmarks to compare this (strategy 2) against the unweighted version (strategy 1):
The first column is a sanity check to make sure that they are indeed the same in terms of number of iterations (as it should be). The second column represent the convergence with respect to time. My interpretation is that the overhead is negligible and that any difference that we might be seeing is probably dominated by noise in the measurements (it doesnt make much sense that the weighted version is faster as it seems to be the case in the first dataset.