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

FgIGraph.h
1
11#pragma once
12
13#include <NeMachineLearningLib.h>
14#include <MachineLearning/FgDiscreteFactorNode.h>
15
16 namespace NeuralEngine
17{
18 namespace MachineLearning
19 {
20 template<class T, class U>
21 class NE_IMPEXP IGraph
22 {
23 public:
24
32 IGraph(std::vector<T*> &factorNodes) {}
33
39 ~IGraph() {}
40
41 virtual void ComputeMarginal(int numIter, double tolerance = 1e-6f) = 0;
42
43 protected:
44 std::vector<T*> factorList;
45 std::vector<U*> variableList;
46
47 private:
48 friend class boost::serialization::access;
49
50 template<class Archive>
51 void serialize(Archive& ar, unsigned int version)
52 {
53 //ar & boost::serialization::base_object<IGraph>(*this);
54 //ar & mNodes & sIncomming & sOutgoing & mMessageBox & sName & iId;
55 }
56 };
57 }
58}
NeuralEngine::MachineLearning::IGraph
Definition: FgIGraph.h:22
NeuralEngine::MachineLearning::IGraph::IGraph
IGraph(std::vector< T * > &factorNodes)
Constructor.
Definition: FgIGraph.h:32
NeuralEngine::MachineLearning::IGraph::~IGraph
~IGraph()
Destructor.
Definition: FgIGraph.h:39
NeuralEngine
Definition: NeArray2.h:18