Hello everybody,
I learned Keras and now i will learn PyTorch, I am a beginner. I tried to use a LSTM (both in keras and PyTorch), and the one of PyTorch doesn’t train. I know approximately how the loss and the accuracy must be with Keras, and here, they doesn’t change during the epoch. So i did the assumption that my PyTorch code is not good. I juste want to use one LSTM layer with 256 filters and one linear layer.
This is my PyTorch code :
  

      gist.github.com
  

  
    https://gist.github.com/floschreiber/e1a60027606f2f771a05987defd5e955 2

  gistfile1.txt
  from multiprocessing import cpu_count
from pathlib import Path
from dataset_redshift import dataset_redshift
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
import torch
from torch import nn
    This file has been truncated. show original




  

  
    
    
  

  


I want to do some classifications, I have 3 classes, and the data are 1D time series with 17908 values. In the train, there are 14001 time series. The shape of the matrix is 14001x17908.
Thanks for your help