Begin Network build
This commit is contained in:
21
simple/Network.h
Normal file
21
simple/Network.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include "Node.h"
|
||||
|
||||
namespace bayesnet {
|
||||
class Network {
|
||||
private:
|
||||
std::map<std::string, Node*> nodes;
|
||||
public:
|
||||
Network();
|
||||
~Network();
|
||||
void addNode(std::string);
|
||||
void addEdge(std::string, std::string);
|
||||
void fit(const std::vector<std::vector<double>>&);
|
||||
std::vector<double> predict(const std::vector<std::vector<double>>&);
|
||||
};
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user