1
$\begingroup$

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,

$\endgroup$

1 Answer 1

0
$\begingroup$

Feature Constructor will help.

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

https://orange3.readthedocs.io/projects/orange-visual-programming/en/latest/widgets/data/featureconstructor.html

New contributor
Brian Beachkofski is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$
1
  • $\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 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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