Rbm
- enable linear hidden : instead of prob(v_to_h()): use toHiddenProbs() - enable linear visible: instead of prob(h_to_v()): use toVisibleProbs() - make v_to_h() and h_to_v() private and force to use toHiddenProbs() and toVisibleProbs() - use cd_jens or cd_hinton. cd_hinton_hid_lineaer is not of use anymre, since it is not capable of CDn
This commit is contained in:
+3
-4
@@ -145,9 +145,6 @@ public:
|
||||
size_t numHidden() const;
|
||||
size_t numVisible() const;
|
||||
|
||||
arma::mat v_to_h(const arma::mat &visible) const;
|
||||
arma::mat h_to_v(const arma::mat &hidden) const;
|
||||
|
||||
void gibbs_hv(arma::mat &h_probs, arma::mat &v_probs) const;
|
||||
void gibbs_vh(arma::mat &v_probs, arma::mat &h_probs) const;
|
||||
|
||||
@@ -161,10 +158,12 @@ protected:
|
||||
|
||||
private:
|
||||
arma::mat m_whv;
|
||||
void cd_hinton_hid_binary(arma::mat const &v_states, arma::mat &dwhv, arma::mat &dbhv, arma::mat &dbv);
|
||||
void cd_hinton(arma::mat const &v_states, arma::mat &dwhv, arma::mat &dbhv, arma::mat &dbv);
|
||||
void cd_hinton_hid_linear(arma::mat const &v_states, arma::mat &dwhv, arma::mat &dbhv, arma::mat &dbv);
|
||||
void cd_jens(arma::mat const &v_states, arma::mat &dwhv, arma::mat &dbhv, arma::mat &dbv);
|
||||
void cd(arma::mat const &v_states, arma::mat &dwhv, arma::mat &dbhv, arma::mat &dbv);
|
||||
arma::mat v_to_h(const arma::mat &visible) const;
|
||||
arma::mat h_to_v(const arma::mat &hidden) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user