Ultra
0.9.4
Loading...
Searching...
No Matches
src
kernel
gp
src
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
16
#include "
kernel/gp/src/classification_result.h
"
17
#include "
kernel/gp/src/dataframe.h
"
18
19
namespace
ultra::src
20
{
21
28
template
<
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
40
template
<
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
classification_result.h
ultra::src::ClassificationPredictor
Definition
predictor.h:40
ultra::src::RegressionPredictor
Definition
predictor.h:28
dataframe.h
Generated by
1.15.0