Tree Depth as flow variable

Hi

I’m trying to make tree depth as a flow variable for training decision tree learner. But when I add it the decision tree learner it is not in the drop-down options. The only parameters that are available are max and current iterations. How can I solve this problem?

Hi @Nilou -

The maxLevels flow variable input in the Simple Regression Tree Learner requires an integer as input. So, in the Parameter Optimization Loop Start node, you should check the Integer checkbox for the flow variable you create, to make sure it’s a match.

1 Like

Thanks for your reply!

It is already checked as integer. But the tree depth flow variable does not show in any of the drop-downs.

In that case, can you upload a snippet of your workflow itself instead of just the screenshot? When I briefly tried to recreate the issue on Thursday, everything was working fine for me.