- added Layer

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@576 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-10-25 16:03:33 +00:00
parent 36fc99df9c
commit 3e90330cd1
2 changed files with 88 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Layer.hpp
* Author: jens
*
* Created on 25. Oktober 2019, 08:13
*/
#ifndef LAYER_HPP
#define LAYER_HPP
#include <string>
#include <armadillo>
#include <jsoncpp/json/json.h>
#include "Rbm.hpp"
class Layer
{
public:
Layer(const std::string &prjname, size_t id, size_t numVisible, size_t numHidden);
Layer(const Layer& orig);
virtual ~Layer();
Json::Value toJson() const;
private:
const std::string &m_prjname;
size_t m_id;
Rbm::Params m_rbm_params;
Rbm m_rbm;
};
#endif /* LAYER_HPP */