Just looking at the docstrings it is not immediately clear what the evaluation function should look like.