You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this gives me an error with the loss function:
File "/home/harvitronix/.local/lib/python3.6/site-packages/fastai/basic_train.py", line 25, in loss_batch
loss = loss_fn(out, *yb)
File "/home/harvitronix/.local/lib/python3.6/site-packages/torch/nn/functional.py", line 1808, in mse_loss
return _pointwise_loss(lambda a, b: (a - b) ** 2, torch._C._nn.mse_loss, input, target, reduction)
File "/home/harvitronix/.local/lib/python3.6/site-packages/torch/nn/functional.py", line 1770, in _pointwise_loss
return lambd_optimized(input, target, _Reduction.get_enum(reduction))
RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 'target'
I'm unclear if this is a bug or implementation error. Guidance is appreciated.
The text was updated successfully, but these errors were encountered:
I'm trying to run a regression on a dataframe with categorical and continuous columns using the
get_tabular_learner()
helper. My code is as follows:Running this gives me an error with the loss function:
I'm unclear if this is a bug or implementation error. Guidance is appreciated.
The text was updated successfully, but these errors were encountered: