@staticmethod
def __check_config(config):
    """Check whether the configuration information is valid.

        :param config: The configuration information, including 11 configuration fields.
        :return: None.
        """
    keys = ['capacity', 'dimension', 'sequence', 'nodes', 'connections',
        'depths', 'batch_size', 'epoch', 'middle_layer']
    for item in keys:
        if item not in config:
            raise Exception('Invalid configuration.')
    if 'evolution' not in config:
        config['evolution'] = 0
    if 'verbose' not in config:
        config['verbose'] = False
