Ticket #1150 (new wish)
Multi-dimensional class variables
|Reported by:||anze||Owned by:|
|Cc:||janez, lanz, matija||Blocking:|
Orange 2.5 domain can contain a single class variable (class_var) and/or multiple class variables (class_vars). It is possible (and common) to construct a domain that has class_var set and empty class_vars or vice versa. In Orange 3.0, we should merge the concepts of single-class and multi-class domains, since they both represent the dependent variables.
- If a domain contains one or more class variables, class_vars should contain all of them. class_var should point to the first variable in class_vars.
- data.Instance get_class should return the value of the first dependent variable or raise exception if domain is classless.
- indexing instances with index -1 should raise a deprecation warning. If domain has a single class, it should return its value. If domain has more than one class, it should raise an error.
- to_numpy should default to "am/w". Most of the methods that use it should use as_numpy anyway.