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