i want do interactive tree for my project. i'm writing code inside modeler syntax and this program to get me what i want(which i want Rots tree values) . Launch interactive session opens the tree builder, values is okey but i dont generated model inside scripting. i need just a click generated model icon (without manual) but this way manuel click. who know is this trick with coding or scripting?
i'm writing my code example;
import modeler.api
stream = modeler.script.stream()
res=[]
m1= stream.findByID('id68YV8NTPKIR')
m1.setPropertyValue("prune_tree", False)
m1.setPropertyValue("model_output_type", "InteractiveBuilder")
m1.setPropertyValue("tree_directives", """Grow Node Index 0 Children 1 2 Spliton (
"TotalCharges", Interval ( NegativeInfinity, 100) Interval ( 100, Infinity ))""")
m1.setPropertyValue("tree_directives", "Test")
m1.setPropertyValue("model_name", "Cart_Drug")
m1.run(res)
thanks.