I am seeking to evaluate logistic regression against a rule-based (nested if-else statements) classification in Orange.

The steps I've taken to investigate this are as follows:

  1. I could not identify any widgets that would implement this. The closest I could find was the interactive tree from version 2.7, but this widget seems to have been discontinued.
  2. I've attempted to generate the results I'm looking for by editing the in_data object produced by creating a tree, sending the results to the "Test and Score" widget, and then editing the results in "Python Script" to create an out_data object. However, the out_data object I produce won't work within the confusion matrix.

Is there an easier way to implement this rule-based criterion in Orange? If not, are there some other steps I can use to implement it within the Python script?

Thank you,


1 Answer 1


Feature Constructor will help.

{val} if {condition} else {val} if {condition} else {val}


  • $\begingroup$ As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. $\endgroup$
    – Community Bot
    May 20, 2022 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.