azizalto commited on
Commit
df3da99
1 Parent(s): 92d41b6
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -22,6 +22,7 @@ class LoadData:
22
  # add relations / edges for knowledge graph
23
  train_kg: pd.DataFrame = train_df.copy()
24
  train_kg['relation'] = train_kg['context'] + " || " + train_kg['title'] + " || " + train_kg['score'].astype(str)
 
25
 
26
 
27
  class App:
 
22
  # add relations / edges for knowledge graph
23
  train_kg: pd.DataFrame = train_df.copy()
24
  train_kg['relation'] = train_kg['context'] + " || " + train_kg['title'] + " || " + train_kg['score'].astype(str)
25
+ train_kg = train_kg.sample(frac=1).reset_index(drop=True) # shuffle data
26
 
27
 
28
  class App: