NeuralEngine
A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes.
FgILineSearch.h
1/*
2File: MachineLearning/Optimization/Base/ILineSearch.h
3
4Author:
5Email:
6Site:
7
8Copyright (c) 2017 . All rights reserved.
9*/
10
11#pragma once
12
13#include <NeMachineLearningLib.h>
14#include <MachineLearning/NonlinearObjectiveFunction.h>
15#include <MachineLearning/CommonUtil.h>
16
17namespace NeuralEngine
18{
19 namespace MachineLearning
20 {
21 template<typename Scalar>
23 {
24 public:
25
38 virtual void Linesearch(NonlinearObjectiveFunction<Scalar>& objFunc, Scalar& fx, af::array& x, af::array& grad, Scalar& step, const af::array& drt, const af::array& xp) = 0;
39
40 ~ILineSearch() { }
41 };
42 }
43}
virtual void Linesearch(NonlinearObjectiveFunction< Scalar > &objFunc, Scalar &fx, af::array &x, af::array &grad, Scalar &step, const af::array &drt, const af::array &xp)=0
Linesearches.