Skip to content

RayEvaluator does not accept partial functions #2

@Deathn0t

Description

@Deathn0t

The ray evaluator method="ray" does not accept functools.partial so the run_function has to be redefined as follows in the different benchmarks:

    @property
    def run_function(self): 

        def run_function_wrapper(job, **kwargs):
            return run_function_base(job, bb_func=ackley, **kwargs)

        return run_function_wrapper

where run_function_base is from cbbo_benchmarks.utils import run_function as run_function_base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions