Changeset 10502:6b593a8cd5a0 in orange


Ignore:
Timestamp:
03/13/12 14:20:28 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Make multi-label warning and errors more clear on what a 'multi-label dataset' is from our perspective; Miha warned me students had troubles with this.

Location:
Orange
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Prototypes/OWBR.py

    r9671 r10502  
    5959 
    6060        if not Orange.multilabel.is_multilabel(data): 
    61             self.warning(0, "Multi-label data is expected on the input.") 
     61            self.warning(0, "Multi-label data with class values 0 and 1 is " 
     62                            "expected on the input.") 
    6263            return 
    6364        self.warning(0, None) 
  • Orange/OrangeWidgets/Prototypes/OWBRkNN.py

    r9671 r10502  
    6363 
    6464        if not Orange.multilabel.is_multilabel(data): 
    65             self.warning(0, "Multi-label data is expected on the input.") 
     65            self.warning(0, "Multi-label data with class values 0 and 1 is " 
     66                            "expected on the input.") 
    6667            return 
    6768        self.warning(0, None) 
  • Orange/OrangeWidgets/Prototypes/OWLP.py

    r9671 r10502  
    5959 
    6060        if not Orange.multilabel.is_multilabel(data): 
    61             self.warning(0, "Multi-label data is expected on the input.") 
     61            self.warning(0, "Multi-label data with class values 0 and 1 is " 
     62                            "expected on the input.") 
    6263            return 
    6364        self.warning(0, None) 
  • Orange/OrangeWidgets/Prototypes/OWMLkNN.py

    r9671 r10502  
    7272 
    7373        if not Orange.multilabel.is_multilabel(data): 
    74             self.warning(0, "Multi-label data is expected on the input.") 
     74            self.warning(0, "Multi-label data with class values 0 and 1 is " 
     75                            "expected on the input.") 
    7576            return 
    7677        self.warning(0, None) 
  • Orange/multilabel/br.py

    r9994 r10502  
    7575    def __call__(self, instances, weight_id = 0, **kwds): 
    7676        if not Orange.multilabel.is_multilabel(instances): 
    77             raise TypeError("The given data set is not a multi-label data set.") 
     77            raise TypeError("The given data set is not a multi-label data set" 
     78                            " with class values 0 and 1.") 
    7879         
    7980        for k in kwds.keys(): 
  • Orange/multilabel/brknn.py

    r9994 r10502  
    9494    def __call__(self, instances, weight_id = 0, **kwds): 
    9595        if not Orange.multilabel.is_multilabel(instances): 
    96             raise TypeError("The given data set is not a multi-label data set.") 
     96            raise TypeError("The given data set is not a multi-label data set" 
     97                            " with class values 0 and 1.") 
    9798 
    9899        for k in kwds.keys(): 
  • Orange/multilabel/lp.py

    r9994 r10502  
    8484    def __call__(self, instances, base_learner = None, weight_id = 0, **kwds): 
    8585        if not Orange.multilabel.is_multilabel(instances): 
    86             raise TypeError("The given data set is not a multi-label data set.") 
     86            raise TypeError("The given data set is not a multi-label data set" 
     87                            " with class values 0 and 1.") 
    8788 
    8889        self.__dict__.update(kwds) 
  • Orange/multilabel/mlknn.py

    r10417 r10502  
    143143    def __call__(self, instances, weight_id = 0, **kwds): 
    144144        if not Orange.multilabel.is_multilabel(instances): 
    145             raise TypeError("The given data set is not a multi-label data set.") 
     145            raise TypeError("The given data set is not a multi-label data set" 
     146                            " with class values 0 and 1.") 
    146147         
    147148        self.__dict__.update(kwds) 
Note: See TracChangeset for help on using the changeset viewer.