This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Neuro/Net.h
2015-10-26 19:50:01 +01:00

23 lines
508 B
C++

#pragma once
#include <vector>
#include "Layer.h"
class Net : public std::vector < Layer >
{
public:
Net();
Net(std::initializer_list<size_t> layerSizes);
Net(const std::string &filename);
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);
};