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

Weights sum up to zero #322

Open
mominchen opened this issue Mar 23, 2017 · 0 comments
Open

Weights sum up to zero #322

mominchen opened this issue Mar 23, 2017 · 0 comments

Comments

@mominchen
Copy link

Hello,
I got recently this error message, although I read it's been fixed. I'm running python 2.7.13 on a Macbook Air and I've installed the following versions: nolearn 0.6.1.dev0, Theano 0.8.1, Lasagne 0.2.dev1, numpy 1.12.0

The following code was running and if I set up train_split to 0.01, it works. The line below ... is causing the error message below. I'd really appriciate any help I can get, to make this code run:

train_split=TrainSplit(eval_size=0.0), 
update=nesterov_momentum,
update_learning_rate=theano.shared(float32(0.01)),
update_momentum=theano.shared(float32(0.9)),
regression=True,
max_epochs=5000,
verbose=1,
....
net.fit(X, y)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nolearn/lasagne/base.py", line 693, in fit
self.train_loop(X, y, epochs=epochs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nolearn/lasagne/base.py", line 796, in train_loop
custom_scores, weights=batch_valid_sizes, axis=1)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/function_base.py", line 1140, in average
"Weights sum to zero, can't be normalized")
ZeroDivisionError: Weights sum to zero, can't be normalized

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