Changeset 3629:3a2058dc1c10 in orange


Ignore:
Timestamp:
04/30/07 18:00:36 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
15787da21035bbc9821df82b729085944f4a48d8
Message:
  • fixed an error message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngCN2.py

    r3600 r3629  
    124124    def __call__(self, examples, weight=0): 
    125125        if examples.domain.classVar.varType == orange.VarTypes.Continuous: 
    126             print "CN2 can learn only on discrete class!" 
    127             return 
     126            raise "CN2 requires a discrete class" 
    128127        cl = orange.RuleLearner.__call__(self,examples,weight) 
    129128        rules = cl.rules 
Note: See TracChangeset for help on using the changeset viewer.