-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
With an older release I was able to use the UserDefinedEvaluator by initiating it with a custom Python function my_fit as follows:
evaluator = op.UserDefinedEvaluator(problem, my_fit)
Now I get the following error when I do this:
TypeError: __init__(): incompatible function arguments. The following argument types are supported:
1. __init__(self, arg0: pyoperon.pyoperon.Problem, arg1: std::function<std::vector<float, std::allocator<float> > (Operon::Random::RomuTrio*, Operon::Individual const&)>, /) -> None
Invoked with types: pyoperon.pyoperon.UserDefinedEvaluator, pyoperon.pyoperon.Problem, function
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels