1
2
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í (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
53
54
55
56
57 public void oneLearningStep(Pattern input, Pattern output) {
58
59 }
60
61
62
63
64
65
66 public Pattern predict(Pattern input) {
67
68 return null;
69 }
70
71
72
73
74
75
76 public void train(InputOutputPattern[] iop) {
77
78
79 }
80
81
82
83
84
85
86 public int getInputSize() {
87
88 return net.getInputSize();
89 }
90
91
92
93
94
95
96 public int getOutputSize() {
97 return net.getInputSize();
98 }
99
100
101
102
103
104
105 public void setup(NeuralNetworkConfig config) throws ConfigurationException {
106
107
108 }
109
110
111
112
113
114
115 public NeuralNetworkConfig yieldConfiguration() {
116
117 return null;
118 }
119
120
121
122
123
124
125 public String getNeuralNetworkName() {
126 return "Smart Multi-layer Perceptron";
127 }
128
129 }