uber / causalml

Uplift modeling and causal inference with machine learning algorithms
Other
5.01k stars 771 forks source link

Update sensitivity tests with more meta-learners #759

Closed jeongyoonlee closed 5 months ago

jeongyoonlee commented 5 months ago

Proposed changes

This PR adds S/T/R learners to test_Sensitivity(), in addition to X-learner. It also fixes lint errors and removes legacy Python2 syntax, such as __future__ and class X(object):.

Types of changes

What types of changes does your code introduce to CausalML? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

This PR depends on #758, which fixes #757. Until #758 is merged, tests will fail.