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
20namespace 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}
virtual int GetNumberOfVariables()=0
Gets the number of input variables for the function.
virtual std::function< Scalar(const af::array &, af::array &)> GetFunction()=0
Gets the objective function.