laureBe commited on
Commit
8348d44
·
verified ·
1 Parent(s): ba8f124

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. tasks/text.py +1 -1
tasks/text.py CHANGED
@@ -140,7 +140,7 @@ async def evaluate_text(request: TextEvaluationRequest):
140
 
141
  early_stopping = tf.keras.callbacks.EarlyStopping(monitor='val_loss', patience=3, restore_best_weights=True)
142
 
143
- model.fit(train_dataset_bert.shuffle(1000).batch(16),epochs=4,batch_size=16,validation_data=val_dataset_bert.shuffle(1000).batch(16),callbacks=[early_stopping])
144
  #--------------------------------------------------------------------------------------------
145
  # YOUR MODEL INFERENCE STOPS HERE
146
  #--------------------------------------------------------------------------------------------
 
140
 
141
  early_stopping = tf.keras.callbacks.EarlyStopping(monitor='val_loss', patience=3, restore_best_weights=True)
142
 
143
+ model.fit(train_dataset_bert.shuffle(1000).batch(16),epochs=3,batch_size=16,validation_data=val_dataset_bert.shuffle(1000).batch(16),callbacks=[early_stopping])
144
  #--------------------------------------------------------------------------------------------
145
  # YOUR MODEL INFERENCE STOPS HERE
146
  #--------------------------------------------------------------------------------------------