示例#1
0
 def draw(self, writer: Writer):
     """
     Draw Paragraph
     Args:
         writer (Writer): Report Writer
     """
     writer.draw_paragraph(text=self.text)
示例#2
0
    def draw(self, writer: Writer):
        """
        Draw Header

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_header(text=self.text, level=self.level, link=self.link)
示例#3
0
    def draw(self, writer: Writer):
        """
        Draw Title

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_title(text=self.text, level=self.level, link=self.link)
示例#4
0
    def draw(self, writer: Writer):
        """
        Draw Header

        Args:
            writer (Writer): Report Writer
        """
        writer.add_new_page()
示例#5
0
    def draw(self, writer: Writer):
        """
        Draw Timing Table

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_training_time(notes=self.notes, timing=self.timing)
示例#6
0
    def draw(self, writer: Writer):
        """
        Draw Data set Summary

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_data_set_summary(notes=self.notes, data_summary=self.data_summary)
示例#7
0
    def draw(self, writer: Writer):
        """
        Draw Basic Info (key-value pairs) Paragraph

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_basic_key_value_pairs(notes=self.notes, info=self.info)
示例#8
0
    def draw(self, writer: Writer):
        """
        Draw Binary-Class Confidence Distribution Result

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_binary_class_confidence_distribution(notes=self.notes,
                                                         visual_result_tuple=self.visual_result_tuple)
示例#9
0
    def draw(self, writer: Writer):
        """
        Draw Binary-Class Reliability Diagram Result

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_binary_class_reliability_diagram(notes=self.notes,
                                                     visual_result_tuple=self.visual_result_tuple)
示例#10
0
    def draw(self, writer: Writer):
        """
        Draw Data Attributes

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_data_attributes(notes=self.notes,
                                    data_attribute=self.data_attribute)
示例#11
0
    def draw(self, writer: Writer):
        """
        Draw Model Info Summary

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_model_info_summary(notes=self.notes,
                                       model_info=self.model_info)
示例#12
0
    def draw(self, writer: Writer):
        """
        Draw Evaluation Result Summary

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_evaluation_result_summary(notes=self.notes,
                                              evaluation_result=self.evaluation_result)
示例#13
0
    def draw(self, writer: Writer):
        """
        Draw Multi Class Evaluation Metric Result

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_multi_class_evaluation_metric_results(notes=self.notes,
                                                          metric_tuple=self.metric_tuple)
示例#14
0
    def draw(self, writer: Writer):
        """
        Draw Confusion Matrix Result

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_confusion_matrix_results(notes=self.notes,
                                             confusion_matrix_tuple=self.confusion_matrix_tuple)
示例#15
0
    def draw(self, writer: Writer):
        """
        Draw Multi-Class Confidence Distribution Result

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_multi_class_confidence_distribution(notes=self.notes,
                                                        visual_result_tuple=self.visual_result_tuple,
                                                        max_num_classes=self.max_num_classes)
示例#16
0
    def draw(self, writer: Writer):
        """
        Draw Binary Class Evaluation Metric Result

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_binary_class_evaluation_metric_results(notes=self.notes,
                                                           metric_tuple=self.metric_tuple,
                                                           aggregated=self.aggregated)
示例#17
0
    def draw(self, writer: Writer):
        """
        Draw Basic Image Grids

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_basic_images_with_grid_spec(notes=self.notes,
                                                image_list=self.image_list,
                                                grid_spec=self.grid_spec)
示例#18
0
    def draw(self, writer: Writer):
        """
        Draw Text Field Distribution

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_text_field_distribution(
            field_name=self.field_name,
            field_distribution=self.field_distribution,
            notes=self.notes)
示例#19
0
    def draw(self, writer: Writer):
        """
        Draw Data Set Distribution

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_data_set_distribution(
            notes=self.notes,
            data_set_distribution=self.dataset_distribution,
            max_class_shown=self.max_class_shown)
示例#20
0
    def draw(self, writer: Writer):
        """
        Draw Missing Data Value

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_data_missing_value(notes=self.notes,
                                       missing_count=self.missing_count,
                                       total_count=self.total_count,
                                       ratio=self.ratio)
示例#21
0
    def draw(self, writer: Writer):
        """
        Draw Date Time Field Distribution

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_datetime_field_distribution(
            field_name=self.field_name,
            field_distribution=self.field_distribution,
            notes=self.notes)
示例#22
0
    def draw(self, writer: Writer):
        """
        Draw Basic Table

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_basic_table(notes=self.notes,
                                table_header=self.table_header,
                                table_data=self.table_data,
                                col_width=self.col_width)
示例#23
0
    def generate(self, writer: Writer) -> None:
        """
        Generate report

        Args:
            writer (Writer): report writer
        """
        writer.build(title=self.name, overview=self.overview,
                     detail=self.detail,
                     content_table=self.has_content_table)
        writer.out()
示例#24
0
    def draw(self, writer: Writer):
        """
        Draw Feature Importance

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_feature_importance(
            notes=self.notes,
            importance_ranking=self.importance_ranking,
            importance_threshold=self.importance_threshold,
            maximum_number_feature=self.maximum_number_feature)
示例#25
0
    def draw(self, writer: Writer):
        """
        Draw Categorical Field Distribution

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_categorical_field_distribution(
            field_name=self.field_name,
            field_distribution=self.field_distribution,
            max_values_display=self.max_values_display,
            colors=self.colors,
            notes=self.notes)
示例#26
0
    def draw(self, writer: Writer):
        """
        Draw Feature Importance

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_feature_shap_values(
            notes=self.notes,
            mode=self.mode,
            feature_shap_values=self.feature_shap_values,
            class_id=self.class_id,
            train_data=self.train_data)
示例#27
0
    def draw(self, writer: Writer):
        """
        Draw Error Analysis By Class

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_error_analysis(notes=self.notes,
                                   mode=self.mode,
                                   error_stats=self.error_stats,
                                   stats_type=self.stats_type,
                                   k=self.k,
                                   top=self.top)
示例#28
0
    def draw(self, writer: Writer):
        """
        Draw Learning Curve

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_learning_curve(
            notes=self.notes,
            history=self.history,
            best_idx=self.best_idx,
            benchmark_metric=self.benchmark_metric,
            benchmark_threshold=self.benchmark_threshold,
            training_params=self.training_params)
示例#29
0
    def draw(self, writer: Writer):
        """
        Draw Numeric Field Distribution

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_numeric_field_distribution(
            field_name=self.field_name,
            field_distribution=self.field_distribution,
            force_no_log=self.force_no_log,
            x_limit=self.x_limit,
            colors=self.colors,
            notes=self.notes)
示例#30
0
    def draw(self, writer: Writer):
        """
        Draw Model Interpreter By Class

        Args:
            writer (Writer): Report Writer
        """
        writer.draw_model_interpreter(notes=self.notes,
                                      mode=self.mode,
                                      class_stats=self.class_stats,
                                      total_count=self.total_count,
                                      stats_type=self.stats_type,
                                      k=self.k,
                                      top=self.top)