Neuro/Net.h

24 lines
526 B
C
Raw Normal View History

2015-03-23 18:28:29 +00:00
#pragma once
#include <vector>
#include <string>
2015-03-23 18:28:29 +00:00
#include "Layer.h"
2015-03-23 18:28:29 +00:00
class Net : public std::vector < Layer >
{
public:
Net();
2015-10-15 20:37:13 +00:00
Net(std::initializer_list<size_t> layerSizes);
Net(const std::string &filename);
2015-03-23 18:28:29 +00:00
void initialize(std::initializer_list<size_t> layerSizes);
void feedForward(const std::vector<double> &inputValues);
std::vector<double> getOutput();
void backProp(const std::vector<double> &targetValues);
void save(const std::string &filename);
void load(const std::string &filename);
};