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

LinearRegression Example #40

Open
NanyangYe opened this issue Feb 22, 2017 · 4 comments
Open

LinearRegression Example #40

NanyangYe opened this issue Feb 22, 2017 · 4 comments

Comments

@NanyangYe
Copy link

Bug Report

ZeroDivisionError Traceback (most recent call last)
in ()
38 optimizer_params={'learning_rate':0.01, 'momentum': 0.9},
39 num_epoch=1000,
---> 40 batch_end_callback = mx.callback.Speedometer(batch_size, 1))
41
42

/auto/homes/yn272/.virtualenvs/HDR/local/lib/python2.7/site-packages/mxnet-0.9.4-py2.7.egg/mxnet/module/base_module.pyc in fit(self, train_data, eval_data, eval_metric, epoch_end_callback, batch_end_callback, kvstore, optimizer, optimizer_params, eval_end_callback, eval_batch_end_callback, initializer, arg_params, aux_params, allow_missing, force_rebind, force_init, begin_epoch, num_epoch, validation_metric, monitor)
420 locals=locals())
421 for callback in _as_list(batch_end_callback):
--> 422 callback(batch_end_params)
423
424 # one epoch of training is finished

/auto/homes/yn272/.virtualenvs/HDR/local/lib/python2.7/site-packages/mxnet-0.9.4-py2.7.egg/mxnet/callback.pyc in call(self, param)
114 if self.init:
115 if count % self.frequent == 0:
--> 116 speed = self.frequent * self.batch_size / (time.time() - self.tic)
117 if param.eval_metric is not None:
118 name_value = param.eval_metric.get_name_value()

ZeroDivisionError: float division by zero

@mli
Copy link
Member

mli commented Mar 3, 2017

@kevinthesun

@kevinthesun
Copy link
Contributor

@lincolnBush What platform are you running this notebook and get this error? I didn't get this issue on Ubuntu 14.04 or 16.04.

@NanyangYe
Copy link
Author

NanyangYe commented Mar 4, 2017 via email

@skirdey
Copy link

skirdey commented Jul 8, 2017

Got the same error, MXNet 0.10.1 on Windows 64 bit.

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

4 participants