poli.core.lambda_black_box

poli.core.lambda_black_box#

This module implements a lambda black box:

Once the user has specified a callable f which takes as input np.ndarray and returns np.ndarray, this black box uses it for the evaluation.

This is useful when the user has already implemented a lot of functionality around a callable, and wants to leverage all that comes with a poli black box: logging, budget management, etc.

Classes

LambdaBlackBox(function[, info, batch_size, ...])

A Lambda black box is a black box that uses a callable for the evaluation.