Orange Forum • View topic - Change in Discrete Variables?

Change in Discrete Variables?

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

Change in Discrete Variables?

Postby jasonzutty » Fri Oct 11, 2013 19:32

I updated my checkout of Orange to the latest version, and it seems to change the behavior in my code.

The problem seems to be coming from a discrete class variable, in which I am given an error that the value does not exist.

If I rollback my Orange installation, it seems to work fine though.

Any ideas of what I need to change to get this working again?

Thanks,
Jason

Re: Change in Discrete Variables?

Postby Ales » Mon Oct 14, 2013 10:46

jasonzutty wrote:The problem seems to be coming from a discrete class variable, in which I am given an error that the value does not exist.
Can you please post the exact error message and traceback?

Most probably you are constructing an Orange.data.Instance or a Orange.data.Table from a numpy array which contains illegal values for the discrete feature. Before the change this would fail for ordinary python list inputs but when the input was an numpy array a different code path was taken and the error checking was not performed. This could lead to a crash down the line when the invalid data was used.


Return to Questions & Support



cron