Orange Forum • View topic - EnumVariable vs StringVariable

EnumVariable vs StringVariable

A place to ask questions about methods in Orange and how they are used and other general support.

EnumVariable vs StringVariable

Postby neuroman » Thu Jan 15, 2009 1:33

What is the difference between the EnumVariable and StringVariable types? When should we use each one?

I am guessing that for a field that is supposed to always contain a certain set of values like True/False pairs, we would use EnumVariable. How, though, does a StringVariable differ?

Postby Janez » Sat Jan 17, 2009 0:18

EnumVariable (I confess the name is stupid - it's a legacy of my being a young graduate student ten years ago) is an ordinary discrete attribute. Its values come from a predefined set of values, such as True/False or Red/Green/Blue.

StringVariable contains an arbitrary string.

General learning algorithms use continuous (FloatVariable) and discrete (EnumVariable) and ignore everything else.


Return to Questions & Support