@contract
def mhod_factory(time_step, migration_time, params):
    def mhod_wrapper(utilization, state=None):
        if not state:
            state = init_state(params['history_size'],
                               params['window_sizes'],
                               len(params['state_config']) + 1)
        return mhod(params['state_config'],
                    params['otf'],
                    params['window_sizes'],
                    params['bruteforce_step'],
                    params['learning_steps'],
                    time_step,
                    migration_time,
                    utilization,
                    state)
    return mhod_wrapper
Creates the MHOD algorithm.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/mhod/core.py/mhod_factory