Fixed the definition of early stopping with respect to PE frac. Previously it was comparing to the previous iteration PE when it should be comparing to the PE at baseline.
Accordingly, the PE at the 0'th iteration is always the PE using all covariates — even if we make no exact matches.
Have everything starting at 0, with a completed iteration corresponding to successfully attempting matching.
Updated defaults for pre_dame and early_stop_iterations; they are now float(‘inf’). This makes sense if they are supposed to be the number of iterations before something happens; if they are infinite they never happen (ie never early stop because of iteration and never switch to dame).
Updated some notebooks to reflect the above.
Eliminated the database folder and corresponding test folder for it -- this is temporary to get it up on PyPi with all the recent updates but will be put back shortly.
Per @vittorioorlandi
Fixed the definition of early stopping with respect to PE frac. Previously it was comparing to the previous iteration PE when it should be comparing to the PE at baseline. Accordingly, the PE at the 0'th iteration is always the PE using all covariates — even if we make no exact matches.
Have everything starting at 0, with a completed iteration corresponding to successfully attempting matching. Updated defaults for pre_dame and early_stop_iterations; they are now float(‘inf’). This makes sense if they are supposed to be the number of iterations before something happens; if they are infinite they never happen (ie never early stop because of iteration and never switch to dame).
Updated some notebooks to reflect the above.
Eliminated the database folder and corresponding test folder for it -- this is temporary to get it up on PyPi with all the recent updates but will be put back shortly.
This takes care of https://github.com/almost-matching-exactly/DAME-FLAME-Python-Package/issues/47 and https://github.com/almost-matching-exactly/DAME-FLAME-Python-Package/issues/48 without breaking https://github.com/almost-matching-exactly/DAME-FLAME-Python-Package/issues/32 or https://github.com/almost-matching-exactly/DAME-FLAME-Python-Package/pull/33