‘Tensor’ object is not callable
I am working on a machine learning project where I need to preprocess my data and prepare it for use with an LSTM model in PyTorch. I have a dataset with a datetime index and a target column called ‘price’. I split the data into training, validation, and test sets based on specific date ranges. I then scale the features using RobustScaler from sklearn and convert the data into PyTorch tensors.