Issue
Is there a way to clone an econml
estimator? For sklearn
there is the clone
function:
from sklearn.linear_model import LinearRegression
from sklearn.base import clone
est = LinearRegression()
est2 = clone(est)
est is est2 # False
Is there something similar for econml
? (If not how hard would it be to build this?)
from econml import LinearDRLearner
est = LinearDRLearner()
est2 = econml_clone(est) # does this exist?
Ps: should there be an econml tag?
Solution
You could perhaps use est2 = copy.deepcopy(est)
from the copy module?
Answered By - Awen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.