- refactored
- constify
This commit is contained in:
+2
-2
@@ -104,7 +104,7 @@ Json::Value Rbm::toJson() const
|
||||
return rbm;
|
||||
}
|
||||
|
||||
void Rbm::gibbs_vh(arma::mat &v_probs, arma::mat &h_probs)
|
||||
void Rbm::gibbs_vh(arma::mat &v_probs, arma::mat &h_probs) const
|
||||
{
|
||||
for (int i=0; i < m_params.numGibbs; i++)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ void Rbm::gibbs_vh(arma::mat &v_probs, arma::mat &h_probs)
|
||||
}
|
||||
}
|
||||
|
||||
void Rbm::gibbs_hv(arma::mat &h_probs, arma::mat &v_probs)
|
||||
void Rbm::gibbs_hv(arma::mat &h_probs, arma::mat &v_probs) const
|
||||
{
|
||||
for (int i=0; i < m_params.numGibbs; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user