Beispiel #1
0
 def display_console_update(self, event):
     printer = TesterPrinter(ConsolePrintStrategy())
     printer.separate()
     printer.line('Finished Evaluation')
     printer.separate()
     event.tester.validate_test_time()
     printer.print_ai_description(ai=event.tester.ml_model, time_stamp=event.tester.test_time,
                                  ai_hash=event.tester.description_hash)
     event.tester.validate_results_set()
     printer.print_results(event.tester.ml_model.results)
     event.tester.summizeTime(ConsolePrintStrategy())
Beispiel #2
0
 def execute(self, event: Event):
     assert type(event) is TesterEvent
     event: TesterEvent
     printer = TesterPrinter(ConsolePrintStrategy())
     printer.separate()
     printer.line('Start Evaluation')
     printer.separate()
Beispiel #3
0
 def execute(self, event: Event):
     assert type(event) is TesterEvent
     event: TesterEvent
     printer = TesterPrinter(ConsolePrintStrategy())
     printer.separate()
     printer.line('Finished Training')
     printer.separate()
Beispiel #4
0
    def execute(self, event: Event):
        assert type(event) is TesterEvent
        event: TesterEvent
        printer = TesterPrinter(ConsolePrintStrategy())

        printer.line('')
        printer.separate()
        printer.line('AI already evaluated')

        printer.separate()
        printer.print_ai_description(ai=event.tester.ml_model, time_stamp=event.tester.test_time,
                                     ai_hash=event.tester.description_hash)
        printer.separate()
Beispiel #5
0
    def __init__(self,
                 builders: List[Builder],
                 project_name: str,
                 log_dir: str,
                 dispatcher: Dispatcher,
                 cache: bool = True):
        self.console_printer = FactoryPrinter(ConsolePrintStrategy())
        self.sorter = BuilderSorter()
        self.project_name = project_name
        self.log_dir = log_dir
        self.dispatcher = dispatcher
        self.permutation_generator = PermutationGenerator()
        self.caching_instruction_loader = CachingInstructionsLoader(
            manager=smart_cache_manager)

        self._add_observers()
        self.builder_permutations = self.load_permutations(builders)
        if cache:
            self.caching_instruction_loader.set_caching_instructions(
                self.builder_permutations)
Beispiel #6
0
    def execute(self, event: Event):
        assert type(event) is FactoryEvent
        event: FactoryEvent
        printer = FactoryPrinter(ConsolePrintStrategy())

        printer.print_remaining_ai(event.factory.count_remaining_models())