Changeset 9246:d15ff1545562 in orange


Ignore:
Timestamp:
11/22/11 18:59:46 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
d9503a41b315341984e5ecc8478e1b0d3b0255b4
Message:

Set proper class_var when not learning a multi-target model.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/regression/pls.py

    r9119 r9246  
    432432        self.xVars, self.yVars = xVars, yVars 
    433433        self.multilabel_flag = multilabel_flag 
     434        if not multilabel_flag: 
     435            self.class_var = yVars[0] 
    434436 
    435437    def __call__(self, instance, result_type=Orange.core.GetValue): 
Note: See TracChangeset for help on using the changeset viewer.