further development
git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@17 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+46
-4
@@ -22,10 +22,11 @@
|
||||
|
||||
//[Headers] -- You can add your own extra header files here --
|
||||
#include "JuceHeader.h"
|
||||
#include "DrawComponent.h"
|
||||
#include "LayerArray.hpp"
|
||||
#include "Rbm.hpp"
|
||||
//[/Headers]
|
||||
|
||||
#include "DrawComponent.h"
|
||||
|
||||
|
||||
//==============================================================================
|
||||
@@ -37,7 +38,10 @@
|
||||
//[/Comments]
|
||||
*/
|
||||
class MainComponent : public Component,
|
||||
public ButtonListener
|
||||
public VisibleLayerArrayListener,
|
||||
public ButtonListener,
|
||||
public SliderListener,
|
||||
public LabelListener
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -51,17 +55,55 @@ public:
|
||||
void paint (Graphics& g);
|
||||
void resized();
|
||||
void buttonClicked (Button* buttonThatWasClicked);
|
||||
void sliderValueChanged (Slider* sliderThatWasMoved);
|
||||
void labelTextChanged (Label* labelThatHasChanged);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
//[UserVariables] -- You can add your own custom variables in this section.
|
||||
ScopedPointer<Rbm> m_pRbm;
|
||||
Weights m_weights;
|
||||
ScopedPointer<Rbm> m_pRbm;
|
||||
ScopedPointer<DrawComponent> Draw;
|
||||
ScopedPointer<DrawComponent> Draw2;
|
||||
ScopedPointer<DrawComponent> DrawWeights;
|
||||
Array<VisibleLayer>m_trainingData;
|
||||
uint32_t m_vNumX;
|
||||
uint32_t m_vNumY;
|
||||
uint32_t m_hNum;
|
||||
uint32_t m_vNumX_next;
|
||||
uint32_t m_vNumY_next;
|
||||
uint32_t m_hNum_next;
|
||||
VisibleLayerArray m_layers;
|
||||
void load();
|
||||
void save();
|
||||
void create();
|
||||
void destroy();
|
||||
const juce::String& getBaseDir();
|
||||
void onChanged(const VisibleLayerArray &obj);
|
||||
//[/UserVariables]
|
||||
|
||||
//==============================================================================
|
||||
ScopedPointer<TextButton> textButton;
|
||||
ScopedPointer<TextButton> trainButton;
|
||||
ScopedPointer<TextButton> addButton;
|
||||
ScopedPointer<Slider> patterSlider;
|
||||
ScopedPointer<TextButton> reconstructButton;
|
||||
ScopedPointer<TextButton> ShakeButton;
|
||||
ScopedPointer<Slider> WeightsSlider;
|
||||
ScopedPointer<Label> numEpochslabel;
|
||||
ScopedPointer<Label> learningRateLabel;
|
||||
ScopedPointer<TextButton> testButton;
|
||||
ScopedPointer<Label> numVisibleLabel;
|
||||
ScopedPointer<Label> numHiddenLabel;
|
||||
ScopedPointer<TextButton> createButton;
|
||||
ScopedPointer<Label> projectNameLabel;
|
||||
ScopedPointer<TextButton> loadButton;
|
||||
ScopedPointer<TextButton> saveButton;
|
||||
ScopedPointer<Label> numVisibleYLabel;
|
||||
ScopedPointer<TextButton> loadTrainingButton;
|
||||
ScopedPointer<TextButton> saveTrainingButton;
|
||||
ScopedPointer<TextButton> clearTrainingButton;
|
||||
ScopedPointer<TextButton> removeTrainingButton;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user