Orange Forum • View topic - Help with attribute

Help with attribute

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

Help with attribute

Postby smf360 » Wed Oct 17, 2012 20:40

Hi, I'm attempting to load data.
The first couple lines of my tab delimited data looks like this:

pid f_0 f_1 f_2 f_3 0_1 0_2 0_3 1_2 1_3 2_3 type
s c c c c c c c c c c d
class
a01 0.5072 0.4172 0.4774 0.7068 50.5551 46.7270 35.6561 41.1448 30.5461 34.0314 2
a02 0.5893 0.5330 0.6152 0.8748 47.8662 43.7645 33.9651 40.9025 31.3533 35.1152 2
a03 0.5701 0.4951 0.5620 0.7973 49.0205 45.4068 35.5627 41.3781 31.8378 35.1744 2
a04 0.5174 0.4264 0.4863 0.7215 50.5004 46.7722 35.6439 41.2450 30.5836 33.9775 2
a05 0.5746 0.5023 0.5674 0.7992 48.8343 45.3536 35.7106 41.5119 32.1471 35.3717 4
a06 0.5911 0.5353 0.6140 0.8663 47.8304 43.9065 34.3016 41.0789 31.7084 35.3226 4

When I load this file using the 'File' widget under the data tab for an Orange scheme, it claims that I have a discrete class with 24 values. I intended to have a discrete class (called type) that is discrete, with two values (2,4). If I select the "...Always create a new attribute..." option under "Advanced" in the 'File' widget GUI, then it determines that I have two values in my discrete class.
Can someone help me understand what is wrong with the format above? Why does it think that I have 24 values in my discrete class?

Thanks in advance,
Scott

Re: Help with attribute

Postby smf360 » Thu Oct 18, 2012 0:03

I sorted it.

It matters that the extension of the file is '.tab' instead of '.txt'.


Return to Questions & Support



cron