Orange Forum • View topic - orange Enumvariable attribute animal does not have newt

orange Enumvariable attribute animal does not have newt

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

orange Enumvariable attribute animal does not have newt

Postby Guest » Mon May 04, 2009 15:13

using zoo.arff for testing.
I get orange Enumvariable attribute animal does not have 'newt'.
But it does?
@ATTRIBUTE animal {aardvark,antelope,bass,bear,boar,buffalo,calf,carp,catfish,cavy,cheetah,chicken,chub,clam,crab,crayfish,crow,deer,dogfish,dolphin,dove,duck,elephant,flamingo,flea,frog,fruitbat,giraffe,girl,gnat,goat,gorilla,gull,haddock,hamster,hare,hawk,herring,honeybee,housefly,kiwi,ladybird,lark,leopard,lion,lobster,lynx,mink,mole,mongoose,moth,
newt,
octopus,opossum,oryx,ostrich,parakeet,penguin,pheasant,pike,
piranha,pitviper,platypus,polecat,pony,porpoise,puma,pussycat,
raccoon,reindeer,rhea,scorpion,seahorse,seal,sealion,seasnake,
seawasp,skimmer,skua,slowworm,slug,sole,sparrow,squirrel,starfish,
stingray,swan,termite,toad,tortoise,tuatara,tuna,vampire,vole,vulture,
wallaby,wasp,wolf,worm,wren}

I have split the line at newt to show that it is present.

Other arff files appear to be handle correctly.

Regards

Everton

Re: orange Enumvariable attribute animal does not have newt

Postby x0ner » Wed Apr 18, 2012 18:19

I too am experiencing this issue. It only seems to happen on certain entries in my dataset, yet all the data is there. According to reading around on the forums, EnumVariable is only reserved for class attributes, but the way in which I have my file defined doesn't mark the attribute as a class.

Code: Select all
['544', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '?']
Traceback (most recent call last):
  File "lala.py", line 53, in user_land
    return decision(cmp)
  File "cls.py", line 9, in decision
    tmp = Orange.data.Instance(mal.domain,d)
KernelException: 'orange.EnumVariable': attribute 'filesize' does not have value '544'

Re: orange Enumvariable attribute animal does not have newt

Postby x0ner » Wed Apr 18, 2012 19:19

I managed to get my example working. Turns out filesize in this case was marked as discrete and should have been marked continuous. After changing it I was able to get the results I wanted.


Return to Questions & Support



cron