Thank you so much, but could I please ask you to have a lot at my code, for a reason its not working:
book= pd.ExcelFile(“path.xlsx”)
sheet=book.parse(“sheetname”)
Input=sheet[‘R’]
Target=sheet[‘MWL’]
batch_size = 365
learning_rate=0.01
epochs=5
input_size= 1
hidden_size=10
output_size=1
class LoadData(Dataset):
def init(self, input, target):
self.input=Input
self.target=Target
def __getitem__(self, idx):
    return {'inputs': [self.input[i] for i in range(idx +4)], 'target': self.target[idx +3]}
    
def __len__ (self):
    return 365

train_dataset = LoadData(Input, Target)
train_loader = DataLoader(train_dataset, batch_size=batch_size, shuffle=False)