NeuralEngine
A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes.
IObjectiveFunction.h
1
11
#pragma once
12
13
#include <NeMachineLearningLib.h>
14
#include <MachineLearning/CommonUtil.h>
15
#include <map>
16
#include <string>
17
#include <functional>
18
19
20
namespace
NeuralEngine
21
{
22
namespace
MachineLearning
23
{
24
template
<
typename
Scalar>
25
class
NE_IMPEXP
IObjectiveFunction
26
{
34
virtual
int
GetNumberOfVariables
() = 0;
35
43
virtual
std::function<
Scalar
(
const
af::array&, af::array&)>
GetFunction
() = 0;
44
};
45
}
46
}
NeuralEngine::MachineLearning::IObjectiveFunction
Definition:
IObjectiveFunction.h:26
NeuralEngine::MachineLearning::IObjectiveFunction::GetNumberOfVariables
virtual int GetNumberOfVariables()=0
Gets the number of input variables for the function.
NeuralEngine::MachineLearning::IObjectiveFunction::GetFunction
virtual std::function< Scalar(const af::array &, af::array &)> GetFunction()=0
Gets the objective function.
Scalar
NeuralEngine
Definition:
NeArray2.h:18
include
MachineLearning
IObjectiveFunction.h
Generated by
1.9.4