py-why / py-why/EconML

Results changes after each run

Open
#245 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.8k
Forks
827
PR merge metrics
No merged PRs in 30d

Description

Thanks for the very nice work!

I am running a basic model as the codes given below. I am getting different results when running these codes each time even though with random_state is fixed to 504

est = LinearDMLCateEstimator(model_y=RandomForestRegressor(),model_t=RandomForestRegressor(),n_splits= 2, random_state= 504)
est.fit(Y, T, X, W,inference='statsmodels')
te_pred=est.effect(X_test)
te_pred_interval = est.const_marginal_effect_interval(X_test, alpha=0.05)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown LinearDMLCateEstimator workflow, including fit, effect, and const_marginal_effect_interval, with random_state set to 504. Inspect how LinearDMLCateEstimator and RandomForestRegressor handle randomness; done means repeated runs either produce identical results or clearly identify the remaining source of variation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, scikit-learn
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.