Changeset 5036:c08f334c74b8 in orange


Ignore:
Timestamp:
07/30/08 21:46:44 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
2b86f69705ef1dce2d659ae4ce05faaf873c7140
Message:
  • fixed error reporting when the non-sparse algorithm is run on continuous attributes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Associate/OWItemsets.py

    r5019 r5036  
    5555                    self.itemsets = orange.AssociationRulesInducer(support = self.minSupport/100., storeExamples = True).getItemsets(self.dataset) 
    5656                self.send("Itemsets", (self.dataset, self.itemsets)) 
    57             except orange.KernelException, (errValue): 
     57            except Exception, (errValue): 
     58                errValue = str(errValue) 
     59                if "non-discrete attributes" in errValue and not self.useSparseAlgorithm: 
     60                    errValue += "\nTry using the algorithm for sparse data" 
    5861                self.error(str(errValue)) 
    59 #                self.send("Itemsets", None) 
     62                self.send("Itemsets", None) 
    6063        else: 
    6164            self.send("Itemsets", None) 
Note: See TracChangeset for help on using the changeset viewer.