How to pass customized arguments to the fit() function of the learner #207
-
Hi guys, I want to apply catboost as the regressor learner as there're categorical features in the x_cols to fit. I need to identify which columns are categorical data. And the argument to identify them, cat_features, is in the fit() function of the catboost. I just want to know how to pass this argument to the fit() function of the learner? I try to find positions where DoubleMLPLR calls fit() function of the learner but I think they're hidden in the code file deeply such that I still didn't find the positions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you for your interest in the package. This should be possible to use in
If this is not what you are looking for a minimal reproducable example would be helpful. You can also create your own learners (add additional arguments etc.) as long as they fulfill the minimum requirements. In case you still want to check where doubleml-for-py/doubleml/double_ml_plr.py Line 176 in df617fd which mostly uses cross_val_predict from scikit-learn doubleml-for-py/doubleml/_utils.py Line 63 in df617fd |
Beta Was this translation helpful? Give feedback.
Thank you for your interest in the package.
Just to clarify. Isn't it possible use the
cat_features
argument inCatBoostRegressor
(documentation)?This should be possible to use in
DoubleMLPLR