These are chat archives for dmlc/mxnet

14th
Aug 2017
Daniel Haehn
@haehn
Aug 14 2017 18:23
ok great, I will try that. Thank you!
Daniel Haehn
@haehn
Aug 14 2017 20:19
seemed to work but then this happens
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-17-ae9607bb45a5> in <module>()
     10           force_init = True,
     11           begin_epoch=0,
---> 12           num_epoch=1000
     13           )
     14 print 'training complete', time.time()-t0, 'seconds'

/home/dhaehn/D1/lib/python2.7/site-packages/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)
    493                     end_of_batch = True
    494 
--> 495                 self.update_metric(eval_metric, data_batch.label)
    496 
    497                 if monitor is not None:

/home/dhaehn/D1/lib/python2.7/site-packages/mxnet/module/module.pyc in update_metric(self, eval_metric, labels)
    678             Typically ``data_batch.label``.
    679         """
--> 680         self._exec_group.update_metric(eval_metric, labels)
    681 
    682     def _sync_params_from_devices(self):

/home/dhaehn/D1/lib/python2.7/site-packages/mxnet/module/executor_group.pyc in update_metric(self, eval_metric, labels)
    546         for texec, islice in zip(self.execs, self.slices):
    547             labels_slice = []
--> 548             for label, axis in zip(labels, self.label_layouts):
    549                 if axis == 0:
    550                     # slicing NDArray along axis 0 can avoid copying

TypeError: zip argument #1 must support iteration
with
train_iter = HDF5ArrayIter(data=X_train, label=Y_train, batch_size=batch_size)
X_train.dtype, Y_train.dtype
(dtype('float32'), dtype('bool'))
@abieler any idea?