Vela commited on
Commit
9f69673
·
1 Parent(s): e10ddaa

modified encoding model

Browse files
Files changed (1) hide show
  1. src/modules/encoding_model.py +1 -1
src/modules/encoding_model.py CHANGED
@@ -17,7 +17,7 @@ file_path = r"src/data/sms_process_data_main.xlsx"
17
  df = sample_data.get_data_frame(file_path)
18
 
19
  def train_model():
20
- logreg_model, X_train_embeddings
21
 
22
  if logreg_model is None:
23
  X_train, X_test, y_train, y_test = train_test_split(df['MessageText'], df['label'], test_size=0.2, random_state=42)
 
17
  df = sample_data.get_data_frame(file_path)
18
 
19
  def train_model():
20
+ global logreg_model, X_train_embeddings
21
 
22
  if logreg_model is None:
23
  X_train, X_test, y_train, y_test = train_test_split(df['MessageText'], df['label'], test_size=0.2, random_state=42)