[RBM]
- committed local changes git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@270 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
class HiddenLayer : public Layer
|
||||
{
|
||||
public:
|
||||
HiddenLayer(uint32_t numUnits = 0, const VectorXd *pStatesInit = nullptr)
|
||||
HiddenLayer(uint32_t numUnits = 0, const RowVectorXd *pStatesInit = nullptr)
|
||||
: Layer(numUnits, pStatesInit)
|
||||
{
|
||||
}
|
||||
@@ -28,7 +28,7 @@ private:
|
||||
{
|
||||
double sum = ((Weights&)weights).hiddenBias()[index];
|
||||
|
||||
sum += layer.states().transpose() * ((Weights&)weights).weights().col(index);
|
||||
sum += layer.states() * ((Weights&)weights).weights().col(index);
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user