Good day @nemad & @temesgen-dadi
and thanks for your replies that I appreciate.
Indeed, I definitely agree that the Decision Tree Learner (DTL) should at least show a warning stating that the Training set has only one defined class. I would even say that it should definitely fail and return an error because a DT such as “TRUE=>SingleClass” is not really a DT and hence may not be informative at all.
My favorite solution would be that the DTL node fails and the DTTR at least warns of getting a weird DT.
My concern is that people may not know or just not notice, as it was the case in the initial thread (Execute failed: ("NullPointerException"): null Decision Tree Ruleset), that something was wrong upstream (here incorrectly setting a threshold to define classes) if the DTL does not warn or fails in this particular case.
But this is just my point of view
Thanks again @nemad & @temesgen-dadi for your explanations.
Best regards,
Ael