8using stream_redirect = py::call_guard<py::scoped_ostream_redirect, py::scoped_estream_redirect>;
15 py::class_<br::SearchSpace>(m,
"SearchSpace")
16 .def(py::init([](br::Data::Dataset data,
bool weights_init=
true){
22 py::arg(
"weights_init") =
true )
23 .def(py::init<
const Dataset&,
const unordered_map<string,float>&,
27 py::arg(
"weights_init") =
true )
28 .def(
"make_regressor", &br::SearchSpace::make_regressor,
30 py::arg(
"max_size") = 0,
32 .def(
"make_classifier", &br::SearchSpace::make_classifier,
34 py::arg(
"max_size") = 0,
36 .def(
"make_multiclass_classifier",
37 &br::SearchSpace::make_multiclass_classifier,
39 py::arg(
"max_size") = 0,
41 .def(
"make_representer", &br::SearchSpace::make_representer,
43 py::arg(
"max_size") = 0,
46 &br::SearchSpace::print,
void bind_engine(py::module &m, string name)
py::call_guard< py::scoped_ostream_redirect, py::scoped_estream_redirect > stream_redirect
void bind_search_space(py::module &m)
py::call_guard< py::scoped_ostream_redirect, py::scoped_estream_redirect > stream_redirect
holds variable type data.
< nsga2 selection operator for getting the front
Holds a search space, consisting of operations and terminals and functions, and methods to sample tha...
void init(const Dataset &d, const unordered_map< string, float > &user_ops={}, bool weights_init=true)
Called by the constructor to initialize the search space.