def calc_global_map_entropy(individual, config):
    b = config.TERRAIN_BORDER
    map_arr = individual.chromosome.map_arr[b:(- b), b:(- b)]
    ent = scipy.stats.entropy(np.bincount(map_arr.reshape((- 1)), minlength=individual.n_tiles))
    ent = ((ent * 100) / np.log(individual.n_tiles))
    return [ent]
def calc_global_map_entropy(individual, config):
    b = config.TERRAIN_BORDER
    map_arr = individual.chromosome.map_arr[b:(- b), b:(- b)]
    ent = scipy.stats.entropy(np.bincount(map_arr.reshape((- 1)), minlength=individual.n_tiles))
    ent = ((ent * 100) / np.log(individual.n_tiles))
    return [ent]