ammarblue / encog-java

Automatically exported from code.google.com/p/encog-java
0 stars 0 forks source link

Convert a FeedForward NN to flat does not work with linear activation function #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. BasicNetwork network = new BasicNetwork();
2. network.addLayer(new BasicLayer(new ActivationLinear(),true,3));
3. FlatNetwork flat = new FlatNetwork(network);

What is the expected output? What do you see instead?
Should work. Error message is 
"To convert to flat a network must only use sigmoid, linear or tanh activation"

Please adjust error message or allow LinearActivation functions in your code 
ValidateForFlat.java, Line 80.

What version of the product are you using? On what operating system?
2.4.3, Java, Linux

Thanks!

Original issue reported on code.google.com by goldstein.iupr on 22 Sep 2010 at 4:38

GoogleCodeExporter commented 9 years ago
Adjusted error message.  The next version of Encog (2.5) allows linear on a 
flat network.

Original comment by heatonre...@gmail.com on 23 Sep 2010 at 1:06