Closed sami6mz closed 7 months ago
ok. So to recap
As for #43 only the code in get_estimation is tested, so the package is not properly equipped to check specifically that this PR does not break the code.
Should we merge this as it is, and implement a more specific test suite? @bthirion @houssamzenati
Previous cross-fitting loop was using an array of numpy array, and we suspected it to slow down the computation time since
multiply_robust_efficient
is faster thanmed_dml
. This commit optimizes the loop.In the end it appears the loop wasn't slowing down anything (
med_dml
is slower because it calls forest instances more often thanmultiply_robust
). Also the new loop seems to give slightly more accurate estimation.