NeuralEngine A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes. |

IGradientOptimizationMethod.h
1
11#pragma once
12
13#include <MachineLearning/IOptimizationMethod.h>
14#include <MachineLearning/FgILineSearch.h>
15#include <functional>
16
17 namespace NeuralEngine
18{
19 namespace MachineLearning
20 {
33 template<typename Scalar>
34 class IGradientOptimizationMethod : public IOptimizationMethod<Scalar>
35 {
36 public:
37
48 virtual af::array GetGradient() = 0;
49
58 virtual void SetGradient(af::array g) = 0;
59
60 protected:
61
62
63 };
64 }
65}
NeuralEngine::MachineLearning::IGradientOptimizationMethod
Common interface for function optimization methods which depend on having both an objective function ...
Definition: IGradientOptimizationMethod.h:35
NeuralEngine::MachineLearning::IGradientOptimizationMethod::SetGradient
virtual void SetGradient(af::array g)=0
Sets a function returning the gradient vector of the function to be optimized for a given value of it...
NeuralEngine::MachineLearning::IGradientOptimizationMethod::GetGradient
virtual af::array GetGradient()=0
Gets a function returning the gradient vector of the function to be optimized for a given value of it...
NeuralEngine::MachineLearning::IOptimizationMethod
Common interface for function optimization methods.
Definition: IOptimizationMethod.h:43
NeuralEngine
Definition: NeArray2.h:18