- init weight with dev = 0.001

- layer load() plausibilty check

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@32 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-10-19 14:58:24 +00:00
parent 56b0c4bee6
commit d0243820d6
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -205,6 +205,9 @@ public:
{
uint32_t numUnits;
fscanf(pFile, "%d\n", &numUnits);
if (numUnits == 0)
break;
pData = new double[numUnits];
T* data = add(nullptr, numUnits);
+1 -1
View File
@@ -482,7 +482,7 @@ void MainComponent::buttonClicked (Button* buttonThatWasClicked)
else if (buttonThatWasClicked == ShakeButton)
{
//[UserButtonCode_ShakeButton] -- add your button handler code here..
m_weights.shuffle(0.01);
m_weights.shuffle(0.001);
redrawReconstruction();
redrawWeights((int)WeightsSlider->getValue());
//[/UserButtonCode_ShakeButton]