- added DBN stack
- concentrated RBM params into structure


git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@295 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2016-06-17 22:14:55 +00:00
parent b10d06d96c
commit 46bffda38f
5 changed files with 319 additions and 198 deletions
+15 -7
View File
@@ -43,7 +43,8 @@ class MainComponent : public Component,
public Thread,
public ButtonListener,
public SliderListener,
public LabelListener
public LabelListener,
public ComboBoxListener
{
public:
//==============================================================================
@@ -61,6 +62,7 @@ public:
void buttonClicked (Button* buttonThatWasClicked);
void sliderValueChanged (Slider* sliderThatWasMoved);
void labelTextChanged (Label* labelThatHasChanged);
void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
void mouseMove (const MouseEvent& e);
void mouseEnter (const MouseEvent& e);
void mouseExit (const MouseEvent& e);
@@ -74,10 +76,12 @@ public:
private:
//[UserVariables] -- You can add your own custom variables in this section.
ScopedPointer<Weights> m_weights;
ScopedPointer<RbmComponent> m_pRbmComponent;
static const size_t DBN_SIZE = 4;
ScopedPointer<Weights> m_weights[DBN_SIZE];
ScopedPointer<RbmComponent> m_pRbmComponent[DBN_SIZE];
Weights *m_weightsCurr;
RbmComponent *m_pRbmComponentCurr;
LayerArray m_layers;
void load();
void save();
void create(juce::String const &projectName="");
void destroy();
@@ -88,22 +92,25 @@ private:
{
m_layers.clear();
}
void loadTraining(const char *pFilename)
{
m_layers.clear();
m_layers.load(pFilename);
}
void saveTraining(const char *pFilename)
{
m_layers.save(pFilename);
}
void removeTrainingAt(size_t index)
{
m_layers.removeAt(index);
}
void updateControls();
//[/UserVariables]
//==============================================================================
@@ -144,6 +151,7 @@ private:
ScopedPointer<Label> weightInitLabel;
ScopedPointer<ToggleButton> rbmLearnVarianceButton;
ScopedPointer<ToggleButton> rbmNormalizeDataToggleButton;
ScopedPointer<ComboBox> m_rbmSelect;
//==============================================================================