Files
Rbm/source/DeepStack.hpp
T
jens 938368f1fa - refactored
- constify
2024-01-22 12:26:03 +01:00

44 lines
1.0 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;
void train(Layer *pLayer, const arma::mat& batch, Rbm::IListener* pListener);
arma::mat trainingBatchFrom(Layer *pLayer, const arma::mat& batch);
arma::mat upPass(Layer *pLayer, arma::mat const &v);
arma::mat upDownPass(Layer *pLayer, const arma::mat& v);
arma::mat downPass(Layer *pLayer, arma::mat const &h);
};
#endif /* DEEPSTACK_HPP */