causalml
causalml copied to clipboard
Uplift modeling and causal inference with machine learning algorithms
I am using the BaseXClassifier and I am running into an error. The code I am using is below: x_learner=BaseXClassifier(control_outcome_learner=CatBoostClassifier(iterations=128,l2_leaf_reg=6,random_strength=0.09453,subsample=0.80,depth=9,learning_rate=0.01987,max_leaves=512,random_state=1234565), treatment_outcome_learner=CatBoostClassifier(iterations=118,l2_leaf_reg=38,random_strength=0.1421,subsample=0.80,depth=1,learning_rate=0.0142,max_leaves=2,random_state =1234565), control_effect_learner=LinearRegression(), treatment_effect_learner=LinearRegression()) x_learners=x_learner.fit(X_train_t,treatment_train_t,y_train_t) uplift_xlearner=x_learners.predict(X_test_t,treatment_test_t,y_test_t) It appears that the...
Can you create tree visualization for causal tree models like uplift tree models? Thanks! _Originally posted by @Chengyingsjtu in https://github.com/uber/causalml/issues/263#issuecomment-764008701_
Hello, I have a question regarding the output of the qini_score function: I expected to receive one float as output as it is written in the description of the function("Returns:...
**Describe the solution you'd like** #413 add documentation for neural-net based methods. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional...
Hi @paullo0106, @jeongyoonlee : First, nice work with this powerful library! I have a few questions: 1. I am wondering whether algorithms in this library such as causaltreeregressor and meta...
**Describe the bug** estimate ate for sleaner produces an error: ValueError: assignment destination is read-only ``` ~/.local/lib/python3.8/site-packages/causalml/inference/meta/slearner.py in predict(self, X, treatment, y, p, return_components, verbose) 317 318 # set the...
**Describe the bug** When I install causalml with tf by conda, this error will be reported as follows. What should I do to fix this error in detail? ``` The...
I am a bit confused about the way that the gain plot is created in the case of multiple treatments in the example depicted [here](https://github.com/uber/causalml/blob/master/examples/uplift_trees_with_synthetic_data.ipynb). Why aren't we calculating the...
Dear Causalml developer As you surely have seen other python ML libraries are easy to implement even for generating a fake dataset. Currently, I have a problem with how to...
hey there, I have a huge amount of data, which requires a very long time. so i wonder if there any way to run the algo e.g. UpliftRandomForestClassifier in a...