View Javadoc

1   /*
2    */
3   package yawn.nn.fuzzyartmap;
4   
5   import yawn.config.NeuralNetworkConfig;
6   import yawn.config.ValidationException;
7   
8   /***
9    * 
10   * <p>$Id: FuzzyArtMapConfig.java,v 1.7 2005/05/09 11:04:56 supermarti Exp $</p>
11   * 
12   * @author Luis Mart&iacute; (luis dot marti at uc3m dot es)
13   * @version $Revision: 1.7 $
14   */
15  public class FuzzyArtMapConfig extends NeuralNetworkConfig {
16  
17  	/***
18  	 * 
19  	 */
20  	protected FuzzyArtMap network = new FuzzyArtMap();
21  
22      /*** 
23       * @see yawn.config.NeuralNetworkConfig#internalValidate()
24       * @todo
25       */
26      protected void internalValidate() throws ValidationException {
27          // TODO Auto-generated method stub
28  
29      }
30  
31      /***
32       * @see yawn.config.NeuralNetworkConfig#getBindedNetworkClass()
33       */
34      public Class getBindedNetworkClass() {
35          return FuzzyArtMap.class;
36      }
37  
38      /***
39       * @return the value of <code>alphaArtA</code>
40       */
41      public double getAlphaArtA() {
42          return this.network.getAlphaArtA();
43      }
44  
45      /***
46       * @return the value of <code>alphaArtB</code>
47       */
48      public double getAlphaArtB() {
49          return this.network.getAlphaArtB();
50      }
51  
52      /***
53       * @return the value of <code>betaArtA</code>
54       */
55      public double getBetaArtA() {
56          return this.network.getBetaArtA();
57      }
58  
59      /***
60       * @return the value of <code>betaArtB</code>
61       */
62      public double getBetaArtB() {
63          return this.network.getBetaArtB();
64      }
65  
66      /***
67       * @return the value of <code>epsilon</code>
68       */
69      public double getEpsilon() {
70          return this.network.getEpsilon();
71      }
72  
73      /***
74       * @return the value of <code>matchError</code>
75       */
76      public double getMatchError() {
77          return this.network.getMatchError();
78      }
79  
80      /***
81       * @return the value of <code>maxEpochs</code>
82       */
83      public int getMaxEpochs() {
84          return this.network.getMaxEpochs();
85      }
86  
87      /***
88       * @return the value of <code>vigilanceArtA</code>
89       */
90      public double getVigilanceArtA() {
91          return this.network.getVigilanceArtA();
92      }
93  
94      /***
95       * @return the value of <code>vigilanceArtB</code> 
96       */
97      public double getVigilanceArtB() {
98          return this.network.getVigilanceArtB();
99      }
100 
101     /***
102      * @return the value of <code>useComplementCoding</code>
103      */
104     public boolean isUseComplementCoding() {
105         return this.network.isUseComplementCoding();
106     }
107 
108     /***
109      * @param alphaArtA
110      */
111     public void setAlphaArtA(double alphaArtA) {
112         this.network.setAlphaArtA(alphaArtA);
113     }
114 
115     /***
116      * @param alphaArtB
117      */
118     public void setAlphaArtB(double alphaArtB) {
119         this.network.setAlphaArtB(alphaArtB);
120     }
121 
122     /***
123      * @param betaArtA
124      */
125     public void setBetaArtA(double betaArtA) {
126         this.network.setBetaArtA(betaArtA);
127     }
128 
129     /***
130      * @param betaArtB
131      */
132     public void setBetaArtB(double betaArtB) {
133         this.network.setBetaArtB(betaArtB);
134     }
135 
136     /***
137      * @param epsilon
138      */
139     public void setEpsilon(double epsilon) {
140         this.network.setEpsilon(epsilon);
141     }
142 
143     /***
144      * @param matchError
145      */
146     public void setMatchError(double matchError) {
147         this.network.setMatchError(matchError);
148     }
149 
150     /***
151      * @param maxEpochs
152      */
153     public void setMaxEpochs(int maxEpochs) {
154         this.network.setMaxEpochs(maxEpochs);
155     }
156 
157     /***
158      * @param useComplementCoding
159      */
160     public void setUseComplementCoding(boolean useComplementCoding) {
161         this.network.setUseComplementCoding(useComplementCoding);
162     }
163 
164     /***
165      * @param vigilanceArtA
166      */
167     public void setVigilanceArtA(double vigilanceArtA) {
168         this.network.setVigilanceArtA(vigilanceArtA);
169     }
170 
171     /***
172      * @param vigilanceArtB
173      */
174     public void setVigilanceArtB(double vigilanceArtB) {
175         this.network.setVigilanceArtB(vigilanceArtB);
176     }
177 
178     /***
179      * @param value
180      */
181     public void setVigilanceB(double value) {
182         this.network.setVigilanceB(value);
183     }
184 
185 	/***
186 	 * @see yawn.config.NeuralNetworkConfig#createSampleInstance()
187 	 */
188 	public NeuralNetworkConfig createSampleInstance() {
189 		FuzzyArtMapConfig conf = new FuzzyArtMapConfig();
190 
191         conf.setMaxEpochs(1000);
192 
193         conf.setAlphaArtA(0.00000000000001);
194         conf.setBetaArtA(0.3);
195         conf.setVigilanceArtA(0.9);
196 
197         conf.setAlphaArtB(0.00000000000001);
198         conf.setBetaArtB(0.3);
199         conf.setVigilanceArtB(1);
200 
201         conf.setUseComplementCoding(true);
202         conf.setEpsilon(0.0000000001);
203         conf.setMatchError(0.001);
204 
205         return conf;
206 	}
207 }