- 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:
@@ -205,6 +205,9 @@ public:
|
|||||||
{
|
{
|
||||||
uint32_t numUnits;
|
uint32_t numUnits;
|
||||||
fscanf(pFile, "%d\n", &numUnits);
|
fscanf(pFile, "%d\n", &numUnits);
|
||||||
|
if (numUnits == 0)
|
||||||
|
break;
|
||||||
|
|
||||||
pData = new double[numUnits];
|
pData = new double[numUnits];
|
||||||
T* data = add(nullptr, numUnits);
|
T* data = add(nullptr, numUnits);
|
||||||
|
|
||||||
|
|||||||
@@ -482,7 +482,7 @@ void MainComponent::buttonClicked (Button* buttonThatWasClicked)
|
|||||||
else if (buttonThatWasClicked == ShakeButton)
|
else if (buttonThatWasClicked == ShakeButton)
|
||||||
{
|
{
|
||||||
//[UserButtonCode_ShakeButton] -- add your button handler code here..
|
//[UserButtonCode_ShakeButton] -- add your button handler code here..
|
||||||
m_weights.shuffle(0.01);
|
m_weights.shuffle(0.001);
|
||||||
redrawReconstruction();
|
redrawReconstruction();
|
||||||
redrawWeights((int)WeightsSlider->getValue());
|
redrawWeights((int)WeightsSlider->getValue());
|
||||||
//[/UserButtonCode_ShakeButton]
|
//[/UserButtonCode_ShakeButton]
|
||||||
|
|||||||
Reference in New Issue
Block a user