Files
Rbm/source/DeepStack.hpp
T
jens d6ea343d4a - cleaned up
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@828 b431acfa-c32f-4a4a-93f1-934dc6c82436
2022-01-18 15:22:28 +00:00

44 lines
1.1 KiB
C++

/*
* 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: DeepStack.hpp
* Author: jens
*
* Created on 25. Oktober 2019, 18:26
*/
#ifndef DEEPSTACK_HPP
#define DEEPSTACK_HPP
#include <string>
#include <vector>
#include <armadillo>
#include <jsoncpp/json/json.h>
#include "Layer.hpp"
#include "AStack.hpp"
class DeepStack : public AStack
{
public:
DeepStack(const std::string &name);
DeepStack(const DeepStack& orig) = delete;
virtual ~DeepStack();
void train(const arma::mat& batch, Rbm::IListener* pListener) override;
arma::mat trainingBatchFrom(size_t layerId, const arma::mat& batch);
void train(size_t layerId, const arma::mat& batch, Rbm::IListener* pListener);
arma::mat upPass(size_t layerId, arma::mat const &v);
arma::mat downPass(size_t layerId, arma::mat const &h);
arma::mat upDownPass(size_t layerId, arma::mat const &v);
};
#endif /* DEEPSTACK_HPP */