gagan3012 commited on
Commit
2f54821
1 Parent(s): 037f049

Update train_model.py

Browse files
Files changed (1) hide show
  1. src/models/train_model.py +3 -3
src/models/train_model.py CHANGED
@@ -15,8 +15,8 @@ def train_model():
15
  train_df = pd.read_csv("data/processed/train.csv")
16
  eval_df = pd.read_csv("data/processed/validation.csv")
17
 
18
- train_df = train_df.sample(random_state=1)
19
- eval_df = eval_df.sample(random_state=1)
20
 
21
  model = Summarization()
22
  model.from_pretrained(
@@ -24,7 +24,7 @@ def train_model():
24
  )
25
 
26
  print(train_df.shape, eval_df.shape)
27
-
28
  model.train(
29
  train_df=train_df,
30
  eval_df=eval_df,
 
15
  train_df = pd.read_csv("data/processed/train.csv")
16
  eval_df = pd.read_csv("data/processed/validation.csv")
17
 
18
+ # train_df = train_df.sample(random_state=1)
19
+ # eval_df = eval_df.sample(random_state=1)
20
 
21
  model = Summarization()
22
  model.from_pretrained(
 
24
  )
25
 
26
  print(train_df.shape, eval_df.shape)
27
+
28
  model.train(
29
  train_df=train_df,
30
  eval_df=eval_df,