* For consistency and avoidance of future issues, replace all occurrences of Pandas' get_dummies with skLearn's OneHotEncoder. Encoder lifespan: Reuses encoders for new estimate_effect() calls, and replaces existing encoders on CausalEstimator.fit(). Additional uses of get_dummies without side-effects or consistent encoding issues in do-Sampler Propensity Scores utilities also replaced for consistency.
Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
* Add categorical encoding consistency tests for CausalEstimators. Fix bug in arg order for RegressionEstimator._do().
Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
---------
Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
Co-authored-by: DAVID RAWLINSON <dave@causalwizard.app>