Skip to content

train_gda fails when rr and adapt=True #27

@emilswiderek

Description

@emilswiderek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions