Ultra 0.9.4
Loading...
Searching...
No Matches
predictor.h
Go to the documentation of this file.
1
12
13#if !defined(ULTRA_SRC_PREDICTOR_H)
14#define ULTRA_SRC_PREDICTOR_H
15
18
19namespace ultra::src
20{
21
28template<class P> concept RegressionPredictor = requires(
29 const P &p, const std::vector<value_t> &x)
30{
31 { p(x) } -> std::same_as<value_t>;
32};
33
40template<class P> concept ClassificationPredictor = requires(
41 const P &p, const std::vector<value_t> &x)
42{
43 { p.tag(x) } -> std::same_as<classification_result>;
44};
45
46} // namespace ultra::src
47
48#endif // include guard
Definition predictor.h:40
Definition predictor.h:28