Traceback (most recent call last):


 "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap

self.run()


 "/content/iPERCore/iPERCore/services/preprocess.py", line 80, in run

except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed

Traceback (most recent call last):


 "condadata.py", line 52, in <module>

model.fit(train, verbose=True)


 "/var/www/miniconda2/envs/conda1/lib/python2.7/site-packages/spotlight/factorization/explicit.py", line 172, in fit

loss = loss_fnc(ratings_var, predictions)


 "/var/www/miniconda2/envs/conda1/lib/python2.7/site-packages/spotlight/losses.py", line 191, in regression_loss

return ((observed_ratings - predicted_ratings) ** 2).mean()


 "/var/www/miniconda2/envs/conda1/lib/python2.7/site-packages/torch/autograd/variable.py", line 752, in __sub__

return self.sub(other)


 "/var/www/miniconda2/envs/conda1/lib/python2.7/site-packages/torch/autograd/variable.py", line 296, in sub

return self._sub(other, False)


 "/var/www/miniconda2/envs/conda1/lib/python2.7/site-packages/torch/autograd/variable.py", line 290, in _sub

return Sub(inplace=inplace)(self, other)


 "/var/www/miniconda2/envs/conda1/lib/python2.7/site-packages/torch/autograd/_functions/basic_ops.py", line 34, in forward

return a.sub(b)
TypeError: sub received an invalid combination of arguments - got (torch.FloatTensor), but expected one of:
