Welcome to mimicry’s documentation!

Contents:

class mimicry.mimic.Mimic(domain, fitness_function, samples=1000, percentile=0.9)

Usage: from mimicry import Mimic

Parameters:domain – list of tuples containing the min and max value for each parameter to be optimized, for a bit

string, this would be [(0, 1)]*bit_string_length

Parameters:fitness_function – callable that will take a single instance of your optimization parameters and return

a scalar fitness score

Parameters:
  • samples – Number of samples to generate from the distribution each iteration
  • percentile – Percentile of the distribution to keep after each iteration, default is 0.90
fit()

Run this to perform one iteration of the Mimic algorithm

Returns:A list containing the top percentile of data points

Indices and tables

Table Of Contents

This Page