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

train_gda fails when rr and adapt=True #27

Open
emilswiderek opened this issue Sep 8, 2015 · 0 comments
Open

train_gda fails when rr and adapt=True #27

emilswiderek opened this issue Sep 8, 2015 · 0 comments

Comments

@emilswiderek
Copy link

Hey, I am learning network using following definition of training function:
self.network.trainf = nl.train.train_gda
But with this parameters:
error = self.network.train(trainingSample, target, goal=0.01, lr=0.001, adapt=True, lr_inc=1.1, lr_dec=0.6, max_perf_inc=2.8, rr=0.3)
I receive an error:
File "/usr/local/lib/python3.4/dist-packages/neurolab/core.py", line 165, in train return self.trainf(self, *args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/neurolab/core.py", line 349, in __call__ train(net, *args) File "/usr/local/lib/python3.4/dist-packages/neurolab/train/gd.py", line 66, in __call__ e = reg_error(e, self.rr, net) NameError: name 'reg_error' is not defined
I have now found out that adapt=True is causing the problem, because when i set it to False, everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant