Search code examples
orange

Orange "invalid flags for attribute x"


I am trying to import my tab delimited data set in Orange Canvas via File widget. For some reason, I keep getting this error invalid flags for attribute x. I could not find anything related on web or Orange documentation.
Can someone clarify what is actually wrong?


Data (attribute x is of string):

id  age gender  x
d   d   d   d
            class
1   22  M   x_val1
2   28  M   x_val2
3   18  F   x_val3
.
.

Solution

  • You don't need to mark an attribute as class if it's not. But you still need to adhere to a three-line format if you want to supply feature type information (discrete) in the second row. With a three-line format, the third line consists of various flags ("class"; "meta" (just an annotation; not used for learning); "ignore" completely skipped; and possibly others). If you add a third row of all \t-separated blanks, I can load it fine.

    id  age gender  x
    d   d   d   d
    
    1   22  M   x_val1
    2   28  M   x_val2
    3   18  F   x_val3