Esempio n. 1
0
 def send_report(self):
     if self.data is None:
         return
     caption = report.render_items_vert(
         (("Number of centroids:", self.number_of_clusters), ))
     self.report_plot(self.scatter)
     self.report_caption(caption)
Esempio n. 2
0
 def send_report(self):
     if self.data is None:
         return
     caption = report.render_items_vert(
         (("Polynomial Expansion: ", self.polynomialexpansion), ))
     self.report_plot(self.plot)
     if caption:
         self.report_caption(caption)
 def send_report(self):
     if self.data is None:
         return
     caption = report.render_items_vert((
          ("Number of centroids:", self.number_of_clusters),
     ))
     self.report_plot(self.scatter)
     self.report_caption(caption)
 def send_report(self):
     if self.data is None:
         return
     caption = report.render_items_vert(
         (("Polynomial Expansion", self.degree), ))
     self.report_plot(self.scatter)
     if caption:
         self.report_caption(caption)
 def send_report(self):
     if self.data is None:
         return
     caption = report.render_items_vert((
          ("Polynomial Expansion", self.degree),
     ))
     self.report_plot(self.scatter)
     if caption:
         self.report_caption(caption)
 def send_report(self):
     if self.data is None:
         return
     caption = report.render_items_vert((
          ("Polynomial Expansion: ", self.polynomialexpansion),
     ))
     self.report_plot(self.plot)
     if caption:
         self.report_caption(caption)
Esempio n. 7
0
 def send_report(self):
     if self.data is None:
         return
     caption_items = (("Target class", self.target_class),
                      ("Learning rate", self.alpha), ("Stochastic",
                                                      str(self.stochastic)))
     if self.stochastic:
         caption_items += (("Stochastic step size", self.step_size), )
     caption = report.render_items_vert(caption_items)
     self.report_plot(self.scatter)
     self.report_caption(caption)
Esempio n. 8
0
 def send_report(self):
     if self.data is None:
         return
     self.report_plot()
     caption = report.render_items_vert((
         ("Color", self.color_value != "Same color" and self.color_value),
         ("Shape", self.shape_value != "Same shape" and self.shape_value),
         ("Size", self.size_value != "Same size" and self.size_value),
         ("Labels", self.label_value != "No labels" and self.label_value)))
     if caption:
         self.report_caption(caption)
     self.report_items((("Output", self.output_combo.currentText()),))
 def send_report(self):
     if self.data is None:
         return
     caption_items = (
         ("Target class", self.target_class),
         ("Learning rate", self.alpha),
         ("Stochastic", str(self.stochastic))
     )
     if self.stochastic:
         caption_items += (("Stochastic step size", self.step_size),)
     caption = report.render_items_vert(caption_items)
     self.report_plot(self.scatter)
     self.report_caption(caption)
Esempio n. 10
0
 def send_report(self):
     def name(var):
         return var and var.name
     caption = report.render_items_vert((
         ("Color", name(self.graph.attr_color)),
         ("Label", name(self.graph.attr_label)),
         ("Shape", name(self.graph.attr_shape)),
         ("Size", name(self.graph.attr_size)),
         ("Jittering", (self.attr_x.is_discrete or
                        self.attr_y.is_discrete or
                        self.graph.jitter_continuous) and
          self.graph.jitter_size)))
     self.report_plot()
     if caption:
         self.report_caption(caption)
Esempio n. 11
0
    def send_report(self):
        if self.data is None:
            return

        def name(var):
            return var and var.name

        caption = report.render_items_vert((
            ("Color", name(self.graph.attr_color)),
            ("Label", name(self.graph.attr_label)),
            ("Shape", name(self.graph.attr_shape)),
            ("Size", name(self.graph.attr_size)),
            ("Jittering", self.graph.jitter_size != 0 and "{} %".format(self.graph.jitter_size))))
        self.report_plot()
        if caption:
            self.report_caption(caption)
Esempio n. 12
0
 def send_report(self):
     disc_attr = False
     if self.data:
         domain = self.data.domain
         disc_attr = domain[self.attr_x].is_discrete or \
                     domain[self.attr_y].is_discrete
     caption = report.render_items_vert((
         ("Color", self.combo_value(self.cb_attr_color)),
         ("Label", self.combo_value(self.cb_attr_label)),
         ("Shape", self.combo_value(self.cb_attr_shape)),
         ("Size", self.combo_value(self.cb_attr_size)),
         ("Jittering", (self.graph.jitter_continuous or disc_attr) and
          self.graph.jitter_size)))
     self.report_plot()
     if caption:
         self.report_caption(caption)
Esempio n. 13
0
 def send_report(self):
     disc_attr = False
     if self.data:
         domain = self.data.domain
         disc_attr = domain[self.attr_x].is_discrete or \
                     domain[self.attr_y].is_discrete
     caption = report.render_items_vert(
         (("Color", self.combo_value(self.cb_attr_color)),
          ("Label", self.combo_value(self.cb_attr_label)),
          ("Shape", self.combo_value(self.cb_attr_shape)),
          ("Size", self.combo_value(self.cb_attr_size)),
          ("Jittering", (self.graph.jitter_continuous or disc_attr)
           and self.graph.jitter_size)))
     self.report_plot()
     if caption:
         self.report_caption(caption)
Esempio n. 14
0
    def send_report(self):
        if self.data is None:
            return

        def name(var):
            return var and var.name

        caption = report.render_items_vert((
            ("Color", name(self.graph.attr_color)),
            ("Label", name(self.graph.attr_label)),
            ("Shape", name(self.graph.attr_shape)),
            ("Size", name(self.graph.attr_size)),
            ("Jittering", self.graph.jitter_size != 0 and "{} %".format(self.graph.jitter_size))))
        self.report_plot()
        if caption:
            self.report_caption(caption)
Esempio n. 15
0
    def send_report(self):
        if self.data is None:
            return

        def name(var):
            return var and var.name

        def projection_name():
            name = ("Circular Placement", "Linear Discriminant Analysis",
                    "Principal Component Analysis", "Input projection")
            return name[self.placement]

        caption = report.render_items_vert(
            (("Projection", projection_name()), ("Color",
                                                 name(self.graph.attr_color)),
             ("Label", name(self.graph.attr_label)),
             ("Shape", name(self.graph.attr_shape)),
             ("Size", name(self.graph.attr_size)),
             ("Jittering", self.graph.jitter_size != 0
              and "{} %".format(self.graph.jitter_size))))
        self.report_plot()
        if caption:
            self.report_caption(caption)
Esempio n. 16
0
    def send_report(self):
        if self.data is None:
            return

        def name(var):
            return var and var.name

        def projection_name():
            name = ("Circular Placement",
                    "Linear Discriminant Analysis",
                    "Principal Component Analysis",
                    "Input projection")
            return name[self.placement]

        caption = report.render_items_vert((
            ("Projection", projection_name()),
            ("Color", name(self.graph.attr_color)),
            ("Label", name(self.graph.attr_label)),
            ("Shape", name(self.graph.attr_shape)),
            ("Size", name(self.graph.attr_size)),
            ("Jittering", self.graph.jitter_size != 0 and "{} %".format(self.graph.jitter_size))))
        self.report_plot()
        if caption:
            self.report_caption(caption)