Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on method generate of ElmanPattern #247

Open
AleZonta opened this issue Jul 20, 2017 · 2 comments
Open

Exception on method generate of ElmanPattern #247

AleZonta opened this issue Jul 20, 2017 · 2 comments
Labels
Milestone

Comments

@AleZonta
Copy link

In ElmanPattern class, the method generate() is producing an exception.
The following line is the one throwing the exception.

final BasicNetwork network = new BasicNetwork();

Method threw 'org.encog.neural.NeuralNetworkError' exception. Cannot evaluate org.encog.neural.networks.BasicNetwork.toString()

@jeffheaton
Copy link
Owner

Thank you, I will take a look.

@jeffheaton
Copy link
Owner

Do you happen to have any code to reproduce this issue? I don't think it is possable for the BasicNetwork constructor to throw an exception. I tried the following code, which works fine:

        ElmanPattern elmanPat = new ElmanPattern();
        elmanPat.setInputNeurons(5);
        elmanPat.addHiddenLayer(5);
        elmanPat.setOutputNeurons(1);
        BasicNetwork network = (BasicNetwork) elmanPat.generate();
        System.out.println(network.toString());

@jeffheaton jeffheaton added the Bug label Sep 3, 2017
@jeffheaton jeffheaton added this to the Encog v3.4.1 milestone Sep 3, 2017
@jeffheaton jeffheaton added MaybeBug and removed Bug labels Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants