Skip to content
Discussion options

You must be logged in to vote

Thank you for your interest in the package.
Just to clarify. Isn't it possible use the cat_features argument in CatBoostRegressor (documentation)?

This should be possible to use in DoubleMLPLR

from catboost import CatBoostRegressor
# Initialize data
cat_features = [0, 1]
train_data = [["a", "b", 1, 4, 5, 6],
              ["a", "b", 4, 5, 6, 7],
              ["c", "d", 30, 40, 50, 60]]
train_labels = [1.2, 1.1, -1.3]
eval_data = [["a", "b", 2, 4, 6, 8],
             ["a", "d", 1, 4, 50, 60]]

# Initialize CatBoostRegressor
model = CatBoostRegressor(iterations=2,
                          learning_rate=1,
                          depth=2,
                          cat_features=cat_featur…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PhilippBach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants