Changeset 9147:a850a5c6c859 in orange


Ignore:
Timestamp:
10/29/11 20:10:31 (2 years ago)
Author:
mocnik <mocnik@…>
Branch:
default
Convert:
46351fb05002e297269cf505bd1b53cd443199d5
Message:

Added exception when wrong type of data is given

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/evaluation/reliability.py

    r9145 r9147  
    828828        new_domain = None 
    829829         
     830        if examples.domain.class_var.var_type != Orange.data.variable.Continuous.Continuous: 
     831            raise Exception("This method only works on data with continuous class.") 
     832         
    830833        return Classifier(examples, self.box_learner, self.estimators, self.blending, new_domain, blending_classifier) 
    831834     
Note: See TracChangeset for help on using the changeset viewer.