コード例 #1
0
ファイル: OWKMeans.py プロジェクト: AutumnLight/orange
    def sendReport(self):
        settings = [("Distance measure",
                     self.distanceMeasures[self.distanceMeasure][0]),
                    ("Initialization",
                     self.initializations[self.initializationType][0]),
                    ("Restarts",
                     self.restarts)]
        if self.optimized:
            self.reportSettings("Settings", settings)
            self.reportSettings("Optimization",
                                [("Minimum num. of clusters",
                                  self.optimizationFrom),
                                 ("Maximum num. of clusters",
                                  self.optimizationTo),
                                 ("Scoring method",
                                  self.scoringMethods[self.scoring][0])])
        else:
            self.reportSettings("Settings",
                                settings + [("Number of clusters (K)",
                                             self.K)])

        self.reportData(self.data)
        if self.optimized:
            import OWReport
            self.reportSection("Cluster size optimization report")
            self.reportRaw(OWReport.reportTable(self.table))
コード例 #2
0
 def sendReport(self):
     qTableInstance = self.tabs.currentWidget()
     id = self.table2id.get(qTableInstance, None)
     data = self.data.get(id, None)
     self.reportData(data)
     table = self.id2table[id]
     import OWReport
     self.reportRaw(OWReport.reportTable(table))
コード例 #3
0
 def sendReport(self):
     import OWReport
     self.reportSettings("Itemset statistics", [
         ("Number of itemsets", self.nItemsets),
         ("Selected itemsets", self.nSelectedItemsets),
         ("Covered examples", self.nSelectedExamples),
     ])
     self.reportSection("Itemsets")
     self.reportRaw(OWReport.reportTree(self.treeItemsets))
コード例 #4
0
 def sendReport(self):
     import OWReport
     self.reportSettings("Itemset statistics",
                         [("Number of itemsets", self.nItemsets),
                          ("Selected itemsets", self.nSelectedItemsets),
                          ("Covered examples", self.nSelectedExamples),
                          ])
     self.reportSection("Itemsets")
     self.reportRaw(OWReport.reportTree(self.treeItemsets))
コード例 #5
0
 def sendReport(self):
     self.reportSettings(
         "Information",
         [("Target class",
           self.tree.domain.classVar.values[self.targetClass]),
          ("Tree size", "%i nodes, %i leaves" %
           (self.treeNodes, self.treeLeaves))])
     self.reportSection("Tree")
     import OWReport
     self.reportRaw(OWReport.reportTree(self.v))
コード例 #6
0
 def sendReport(self):
     import OWReport
     self.reportSettings("Rule statistics",
                         [("Number of rules", self.nRules),
                          ("Selected rules", self.nSelectedRules),
                          ("Examples covered by selected rules' precondition", self.nSelectedExamples),
                          ("Matching examples", self.nMatchingExamples),
                          ("Mismatching examples", self.nMismatchingExamples)
                          ])
     self.reportSection("Rules")
     self.reportRaw(OWReport.reportTree(self.treeRules))
コード例 #7
0
 def sendReport(self):
     import OWReport
     self.reportSettings("Rule statistics",
                         [("Number of rules", self.nRules),
                          ("Selected rules", self.nSelectedRules),
                          ("Examples covered by selected rules' precondition", self.nSelectedExamples),
                          ("Matching examples", self.nMatchingExamples),
                          ("Mismatching examples", self.nMismatchingExamples)
                          ])
     self.reportSection("Rules")
     self.reportRaw(OWReport.reportTree(self.treeRules))
コード例 #8
0
 def sendReport(self):
     if self.tree:
         self.reportSettings("Information",
                             [("Target class",self.tree.domain.classVar.values[self.targetClass]),
                              ("Tree size", "%i nodes, %i leaves" % (self.treeNodes, self.treeLeaves))])
     else:
         self.reportSettings("Information",
                             [("Target class", "N/A"),
                              ("Tree size", "N/A")])
     self.reportSection("Tree")
     import OWReport
     self.reportRaw(OWReport.reportTree(self.v))
コード例 #9
0
 def sendReport(self):
     self.reportSettings("Output", [("Remove unused values/attributes", self.purgeAttributes),
                                    ("Remove unused classes", self.purgeClasses)])
     text = "<table>\n<th>Attribute</th><th>Condition</th><th>Value</th>/n"
     for i, cond in enumerate(self.Conditions):
         if cond.type == "OR":
             text += "<tr><td span=3>\"OR\"</td></tr>\n"
         else:
             text += "<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n" % (cond.varName, repr(cond.operator), cond.val1)
         
     text += "</table>" 
     import OWReport
     self.reportSection("Conditions")
     self.reportRaw(OWReport.reportTable(self.criteriaTable))
コード例 #10
0
 def sendReport(self):
     self.reportSettings("Output", [("Remove unused values/attributes", self.purgeAttributes),
                                    ("Remove unused classes", self.purgeClasses)])
     text = "<table>\n<th>Attribute</th><th>Condition</th><th>Value</th>/n"
     for i, cond in enumerate(self.Conditions):
         if cond.type == "OR":
             text += "<tr><td span=3>\"OR\"</td></tr>\n"
         else:
             text += "<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n" % (cond.varName, repr(cond.operator), cond.val1)
         
     text += "</table>" 
     import OWReport
     self.reportSection("Conditions")
     self.reportRaw(OWReport.reportTable(self.criteriaTable))
コード例 #11
0
 def sendReport(self):
     settings = [("Distance measure", self.distanceMeasures[self.distanceMeasure][0]),
                 ("Initialization", self.initializations[self.initializationType][0]),
                 ("Restarts", self.restarts)]
     if self.optimized:
         self.reportSettings("Settings", settings)
         self.reportSettings("Optimization", [("Minimum num. of clusters", self.optimizationFrom),
                                              ("Maximum num. of clusters", self.optimizationTo),
                                              ("Scoring method", self.scoringMethods[self.scoring][0])])
     else:
         self.reportSettings("Settings", settings + [("Number of clusters (K)", self.K)])
     self.reportData(self.data)
     if self.optimized:
         self.reportSection("Cluster size optimization report")
         import OWReport 
         self.reportRaw(OWReport.reportTable(self.table))
コード例 #12
0
 def sendReport(self):
     import OWReport
     self.reportData(self.data, "Original data")
     self.reportData(self.dataout, "Output data")
     self.reportSection("Missing values by features")
     self.reportRaw(OWReport.reportTable(self.table))
コード例 #13
0
ファイル: OWMissingValues.py プロジェクト: AutumnLight/orange
 def sendReport(self):
     import OWReport
     self.reportData(self.data, "Original data")
     self.reportData(self.dataout, "Output data")
     self.reportSection("Missing values by features")
     self.reportRaw(OWReport.reportTable(self.table))