def sendData(self):
        self.dataChanged = False
        self.send("Association Rules", self.selectedRules)
        if self.selectedRules:
            examples = self.selectedRules[0].examples

            coveredExamples = examples.getitemsref(self.leftids)
            matchingExamples = examples.getitemsref(self.bothids)
            mismatchingExamples = examples.getitemsref(self.misids)
            
            if self.purgeAttributes or self.purgeClasses:
                coveredExamples = OWTools.domainPurger(coveredExamples, self.purgeClasses)
                matchingExamples = OWTools.domainPurger(matchingExamples, self.purgeClasses)
                mismatchingExamples = OWTools.domainPurger(mismatchingExamples, self.purgeClasses)
        else:
            coveredExamples = matchingExamples = mismatchingExamples = None

        self.send("Covered Data", coveredExamples)
        self.send("Matching Data", matchingExamples)
        self.send("Mismatched Data", mismatchingExamples)
    def sendData(self):
        self.dataChanged = False
        self.send("Itemsets", (self.dataset, self.selectedItemsets))
        if self.selectedItemsets:
            examples = self.dataset.getitemsref(self.exampleids)
            if self.purgeAttributes or self.purgeClasses:
                examples = OWTools.domainPurger(examples, self.purgeClasses)
        else:
            examples = None

        self.send("Data", examples)
Example #3
0
    def sendData(self):
        self.dataChanged = False
        self.send("Itemsets", (self.dataset, self.selectedItemsets))
        if self.selectedItemsets:
            examples = self.dataset.getitemsref(self.exampleids)
            if self.purgeAttributes or self.purgeClasses:
                examples = OWTools.domainPurger(examples, self.purgeClasses)
        else:
            examples = None

        self.send("Examples", examples)
    def sendData(self):
        self.dataChanged = False
        self.send("Association Rules", self.selectedRules)
        if self.selectedRules:
            examples = self.selectedRules[0].examples

            coveredExamples = examples.getitemsref(self.leftids)
            matchingExamples = examples.getitemsref(self.bothids)
            mismatchingExamples = examples.getitemsref(self.misids)
            
            if self.purgeAttributes or self.purgeClasses:
                coveredExamples = OWTools.domainPurger(coveredExamples, self.purgeClasses)
                matchingExamples = OWTools.domainPurger(matchingExamples, self.purgeClasses)
                mismatchingExamples = OWTools.domainPurger(mismatchingExamples, self.purgeClasses)
        else:
            coveredExamples = matchingExamples = mismatchingExamples = None

        self.send("Covered Examples", coveredExamples)
        self.send("Matching Examples", matchingExamples)
        self.send("Mismatching Examples", mismatchingExamples)