mlpanda / DeepLearning_Financial

Attempt to replicate: A deep learning framework for financial time series using stacked autoencoders and long- short term memory
89 stars 27 forks source link

When I was running, there was a problem. #2

Closed luhongkai closed 5 years ago

luhongkai commented 5 years ago

RuntimeError: input and target shapes do not match: input [60 x 1], target [60] at c:\users\administrator\downloads\new-builder\win-wheel\pytorch\aten\src\thnn\generic/MSECriterion.c:13

luhongkai commented 5 years ago

I solved it myself.

loss = criterion(out.view(len(target)), target)