What I'm trying to do is build a regressor based on a value in a feature.
That is to say, I have some columns where one of them is more important (let's suppose it is gender
) (of course it is different from the target value Y).
I want to say:
- If the gender
is Male then use the randomForest regressor
- Else use another regressor
Do you have any idea about if this is possible using sklearn
or any other library in python?