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
17namespace NeuralEngine
18{
19 namespace MachineLearning
20 {
33 template<typename 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}
Common interface for function optimization methods which depend on having both an objective function ...
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...
virtual af::array GetGradient()=0
Gets a function returning the gradient vector of the function to be optimized for a given value of it...
Common interface for function optimization methods.