Hi,
my sine approximation during training works fine, while the prediction (which is feed by previous predictions, with a head start of 20 original values) does not approximate.
I guess there is a bug/misunderstanding in my prediction code  A hint would be great.

  
      gist.github.com
  
  
    https://gist.github.com/saschalippert/36b72313afff86e00f3e10254fb4ff25
simplesine.py
from collections import deque
import torch
from torch import nn
import numpy as np
import matplotlib.pyplot as plt
from torch.utils.data import TensorDataset, DataLoader


class RNN(nn.Module):
    def __init__(self, input_size, output_size, hidden_size, n_layers):
This file has been truncated. show original




  
  
    
    
  
  


            
              
                
                  
                    [Album] Imgur
                  
                
                
               2
            

Thanks