mxnet-notebooks icon indicating copy to clipboard operation
mxnet-notebooks copied to clipboard

LinearRegression Example

Open NanyangYe opened this issue 8 years ago • 4 comments

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

NanyangYe avatar Feb 22 '17 14:02 NanyangYe

@kevinthesun

mli avatar Mar 03 '17 19:03 mli

@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.

kevinthesun avatar Mar 04 '17 02:03 kevinthesun

Ubuntu 16.04 , maybe we could revise some codes to make it more robust

2017年3月4日星期六,Yao Wang [email protected] 写道:

@lincolnBush https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet-notebooks/issues/40#issuecomment-284120901, or mute the thread https://github.com/notifications/unsubscribe-auth/AYdJ2szDgfi5K_bkpcsZYKpP4Za-G6Qoks5riM9igaJpZM4MIs5m .

NanyangYe avatar Mar 04 '17 13:03 NanyangYe

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

skirdey avatar Jul 08 '17 07:07 skirdey