Changelog
0.14.0 (2025-07-xx)
- Remove
polarsas a run dependency. - Make
MetaLearner.feature_importancesandExplainer.feature_importancesreturn a list ofdicts, rather than a list ofpandas.DataFrames.
0.13.0 (2025-05-19)
New features
- Add support for
polarsinput in allfit*andpredict*functions.
0.12.0 (2025-01-29)
Other changes
- Comply with
scikit-learnversions 1.6 and higher.
0.11.0 (2024-09-05)
New features
- Add support for using
scipy.sparse.csr_matrixas datastructure for covariatesX.
0.10.0 (2024-08-13)
New features
- Add abstract method
MetaLearner.predict_conditional_average_outcomestometalearners.metalearner.MetaLearner. - Implement
RLearner.predict_conditional_average_outcomesformetalearners.rlearner.RLearner.
Bug fixes
- Fix bug in which the
metalearners.slearner.SLearner’s inference step would have some leakage in the in-sample scenario.
0.9.0 (2024-08-02)
New features
- Add
MetaLearner.init_args. - Add
FixedBinaryPropensity. - Add
MetaLearner._build_onnxtometalearners.MetaLearnerabstract class and implement it forTLearner,XLearner,RLearner, andDRLearner. - Add
MetaLearner._necessary_onnx_models. - Add
DRLearner.average_treatment_effectto compute the AIPW point estimate and standard error for average treatment effects (ATE) without requiring a full model fit.
0.8.0 (2024-07-22)
New features
- Add
MetaLearner.fit_all_nuisanceandMetaLearner.fit_all_treatment. - Add optional
store_raw_resultsandstore_resultsparameters toMetaLearnerGridSearch. - Renamed
_GSResulttoGSResult. - Added
grid_size_attribute toMetaLearnerGridSearch. - Implement
CrossFitEstimator.score.
Bug fixes
- Fixed a bug in
MetaLearner.evaluatewhere it failed in the case offeature_setbeing different fromNone.
0.7.0 (2024-07-12)
New features
- Add optional
adaptive_clippingparameter toDRLearner.
Other changes
- Change the index columns order in
MetaLearnerGridSearch.results_. - Raise a custom error if only one class is present in a classification outcome.
- Raise a custom error if there are some treatment variants which have seen classification outcomes that have not appeared for some other treatment variant.
0.6.0 (2024-07-08)
New features
- Implement
MetaLearnerGridSearch. - Add a
scoringparameter toMetaLearner.evaluateand implement the abstract method forXLearnerandDRLearner.
Other changes
- Increase the lower bound on
scikit-learnfrom 1.3 to 1.4. - Drop the run dependency on
git_root.
0.5.0 (2024-06-18)
- No longer raise an error if
feature_setis provided toSLearner. - Fix a bug where base model dictionaries – e.g.,
n_foldsorfeature-set– were improperly initialized if the provided dictionary’s keys were a strict superset of the expected keys.
0.4.2 (2024-06-18)
- Ship license file.
0.4.1 (2024-06-18)
- Fix dependencies for pip.
0.4.0 (2024-06-18)
- Implemented
CrossFitEstimator.clone. - Added
n_jobs_base_learnerstoMetaLearner.fit. - Renamed
Explainer.feature_importances. Note this is a breaking change. - Renamed
MetaLearner.feature_importances. Note this is a breaking change. - Renamed
Explainer.shap_values. Note this is a breaking change. - Renamed
MetaLearner.shap_values. Note this is a breaking change. - Renamed
MetaLearner.explainer. Note this is a breaking change. - Implemented
synchronize_cross_fittingparameter forMetaLearner.fit. - Implemented
cvparameter forCrossFitEstimator.fit.
0.3.0 (2024-06-03)
- Implemented
Explainerwith support for binary classification and regression outcomes and discrete treatment variants. - Integration of
ExplainerwithMetaLearnerfor feature importance and SHAP values calculations. - Implemented model reuse through the
fitted_nuisance_modelsandfitted_propensity_modelparameters ofMetaLearner. - Allow for
fit_paramsinMetaLearner.fit.
0.2.0 (2024-05-28)
Beta release with:
DRLearnerwith support for binary classification and regression outcomes and discrete treatment variants.- Generalization of
TLearner,XLearner, andRLearnerto allow for more than two discrete treatment variants. - Unification of shapes returned by
predictmethods. simplify_outputandmetalearner_factory.
0.1.0 (2024-05-16)
Alpha release with:
TLearnerwith support for binary classification and regression outcomes and binary treatment variants.SLearnerwith support for binary classification and regression outcomes and discrete treatment variants.XLearnerwith support for binary classification and regression outcomes and binary treatment variants.RLearnerwith support for binary classification and regression outcomes and binary treatment variants.