def pretty_print_schedule(self, hyperband_schedule, describe_hyperband=True):
        """
        Prints scheduler for user to read.
        """
        print("=========================================")
        print("|           Hyperband Schedule          |")
        print("=========================================")
        if describe_hyperband:
            # Print a message indicating what the below schedule means
            print(
                "Table consists of tuples of "
                "(num configs, num_resources_per_config) "
                "which specify how many configs to run and "
                "for how many epochs. "
            )
            print(
                "Each bracket starts with a list of random "
                "configurations which is successively halved "
                "according the schedule."
            )
            print(
                "See the Hyperband paper "
                "(https://arxiv.org/pdf/1603.06560.pdf) for more details."
            )
            print("-----------------------------------------")
        for bracket_index, bracket in enumerate(hyperband_schedule):
            bracket_string = "Bracket %d:" % bracket_index
            for n_i, r_i in bracket:
                bracket_string += " (%d, %d)" % (n_i, r_i)
            print(bracket_string)
        print("-----------------------------------------")
def pretty_print_schedule ( self , hyperband_schedule , describe_hyperband = True ) : print ( "=========================================" ) print ( "|           Hyperband Schedule          |" ) print ( "=========================================" ) if describe_hyperband : print ( "Table consists of tuples of " "(num configs, num_resources_per_config) " "which specify how many configs to run and " "for how many epochs. " ) print ( "Each bracket starts with a list of random " "configurations which is successively halved " "according the schedule." ) print ( "See the Hyperband paper " "(https://arxiv.org/pdf/1603.06560.pdf) for more details." ) print ( "-----------------------------------------" ) for bracket_index , bracket in enumerate ( hyperband_schedule ) : bracket_string = "Bracket %d:" % bracket_index for n_i , r_i in bracket : bracket_string += " (%d, %d)" % ( n_i , r_i ) print ( bracket_string ) print ( "-----------------------------------------" )
Prints scheduler for user to read.