Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
bind_evaluator.cpp
Go to the documentation of this file.
1#include "module.h"
2#include "bind_evaluator.h"
3
4namespace py = pybind11;
5namespace br = Brush;
6namespace nl = nlohmann;
7
8using stream_redirect = py::call_guard<py::scoped_ostream_redirect, py::scoped_estream_redirect>;
9
10void bind_evaluators(py::module &m)
11{
12 bind_evaluator<br::ProgramType::Regressor>(m, "RegressorEvaluator");
14 bind_evaluator<br::ProgramType::MulticlassClassifier>(m, "MultiClassifierEvaluator");
15 bind_evaluator<br::ProgramType::Representer>(m, "RepresenterEvaluator");
16}
void bind_engine(py::module &m, string name)
py::call_guard< py::scoped_ostream_redirect, py::scoped_estream_redirect > stream_redirect
void bind_evaluators(py::module &m)
< nsga2 selection operator for getting the front
Definition data.cpp:12