5namespace py = pybind11;
9using stream_redirect = py::call_guard<py::scoped_ostream_redirect, py::scoped_estream_redirect>;
11template <br::ProgramType T>
16 py::class_<Class> eval(m, name.data() );
17 eval.def(py::init<>())
18 .def(
"assign_fit", &Class::assign_fit)
19 .def_property(
"scorer", &Class::get_scorer, &Class::set_scorer)
py::call_guard< py::scoped_ostream_redirect, py::scoped_estream_redirect > stream_redirect
void bind_evaluator(py::module &m, string name)
Class for evaluating the fitness of individuals in a population.
< nsga2 selection operator for getting the front