What are the errors?
I made a modest change from torch.sqrt to np.sqrt, and it works fine now:
def rmse(preds, targs):
'''Compute root mean squared error'''
return np.sqrt(torch.mean((targs - preds).pow(2)))
What are the errors?
I made a modest change from torch.sqrt to np.sqrt, and it works fine now:
def rmse(preds, targs):
'''Compute root mean squared error'''
return np.sqrt(torch.mean((targs - preds).pow(2)))