When I load vectors using nn.Embedding.from_pretrained(), training accuracy of the model doesn’t change after every epoch.
But I when initialize them randomly, training accuracy changes.
Here is my code:

  
      gist.github.com
  
  
    https://gist.github.com/avinashsai/c41c0368653afc58f295fdf76d06902d 8
lstm.py
import os
import re
import sys
import numpy as np
import pandas as pd
import sklearn
from sklearn.model_selection import train_test_split,StratifiedKFold
from sklearn.metrics import accuracy_score,f1_score

import nltk
This file has been truncated. show original




  
  
    
    
  
  


Here is the data:

  
      
      GitHub
  
  
    

avinashsai/Sample-Data 1

Contribute to avinashsai/Sample-Data development by creating an account on GitHub.


  
  
    
    
  
  


Any help is very much appreciated.