View Javadoc

1   /*
2    * Created on 16-feb-2005
3    */
4   package yawn.nn.mlp.smart;
5   
6   import yawn.config.ConfigurationException;
7   import yawn.config.NeuralNetworkConfig;
8   import yawn.nn.NeuralNetwork;
9   import yawn.nn.mlp.MultiLayerPerceptron;
10  import yawn.util.InputOutputPattern;
11  import yawn.util.Pattern;
12  
13  /***
14   * This is yawn.nn.mlp.SmartMultiLayerPerceptron part of the yawn project.
15   * 
16   * <p>$Id: SmartMultiLayerPerceptron.java,v 1.5 2005/05/09 11:04:56 supermarti Exp $</p>
17   * 
18   * @author Luis Mart&iacute; (luis dot marti at uc3m dot es)
19   * @version $Revision: 1.5 $
20   */
21  public class SmartMultiLayerPerceptron extends NeuralNetwork {
22  
23      /***
24       * 
25       */
26      private static final long serialVersionUID = 3760558702528508217L;
27  
28      protected long currentEpoch;
29  
30      protected double maxLearningRate;
31  
32      protected long maxEpochs;
33  
34      protected double predictionError;
35  
36  	/***
37  	 * 
38  	 * @uml.property name="net"
39  	 * @uml.associationEnd multiplicity="(1 1)"
40  	 */
41  	protected MultiLayerPerceptron net;
42  
43      /***
44       * 
45       */
46      public SmartMultiLayerPerceptron() {
47          super();
48          net = new MultiLayerPerceptron();
49      }
50  
51      /*
52       * (non-Javadoc)
53       * 
54       * @see yawn.nn.NeuralNetwork#oneLearningStep(yawn.util.Pattern,
55       *      yawn.util.Pattern)
56       */
57      public void oneLearningStep(Pattern input, Pattern output) {
58          // TODO Auto-generated method stub
59      }
60  
61      /*
62       * (non-Javadoc)
63       * 
64       * @see yawn.nn.NeuralNetwork#predict(yawn.util.Pattern)
65       */
66      public Pattern predict(Pattern input) {
67          // TODO Auto-generated method stub
68          return null;
69      }
70  
71      /*
72       * (non-Javadoc)
73       * 
74       * @see yawn.nn.NeuralNetwork#train(yawn.util.InputOutputPattern[])
75       */
76      public void train(InputOutputPattern[] iop) {
77          // TODO Auto-generated method stub
78  
79      }
80  
81      /*
82       * (non-Javadoc)
83       * 
84       * @see yawn.nn.NeuralNetwork#getInputSize()
85       */
86      public int getInputSize() {
87          // TODO Auto-generated method stub
88          return net.getInputSize();
89      }
90  
91      /*
92       * (non-Javadoc)
93       * 
94       * @see yawn.nn.NeuralNetwork#getOutputSize()
95       */
96      public int getOutputSize() {
97          return net.getInputSize();
98      }
99  
100     /*
101      * (non-Javadoc)
102      * 
103      * @see yawn.nn.NeuralNetwork#setup(yawn.config.NeuralNetworkConfig)
104      */
105     public void setup(NeuralNetworkConfig config) throws ConfigurationException {
106         // TODO Auto-generated method stub
107 
108     }
109 
110     /*
111      * (non-Javadoc)
112      * 
113      * @see yawn.nn.NeuralNetwork#yieldConfiguration()
114      */
115     public NeuralNetworkConfig yieldConfiguration() {
116         // TODO Auto-generated method stub
117         return null;
118     }
119 
120     /*
121      * (non-Javadoc)
122      * 
123      * @see yawn.nn.NeuralNetwork#getNeuralNetworkName()
124      */
125     public String getNeuralNetworkName() {
126         return "Smart Multi-layer Perceptron";
127     }
128 
129 }