Orange Forum • View topic - functions: documentation?

functions: documentation?

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

functions: documentation?

Postby BarryFordham » Sat Feb 25, 2012 22:01

H. In Feature Creator, there are new variables I need to repeatably create which take me a while to construct each time, e.g. sum of all variables (excepting the 1st variable which is the instance ID): var2+var3+var4+... Is there a function that does this? Are the functions documented somewhere? Cheers, Barry Fordham

Re: functions: documentation?

Postby Ales » Mon Feb 27, 2012 11:10

There is no single function that does this. But you can use an expression like this to compute the sum of all attributes (except the first one)
Code: Select all
sum([float(_ex[a]) for a in _ex.domain.attributes[1:]])


Return to Questions & Support



cron