skogsgren commited on
Commit
c2c3ea6
1 Parent(s): 67ba3c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ class BertModule(nn.Module):
35
  MAX_EPOCHS = 5
36
  BATCH_SIZE = 12
37
 
38
- num_training_steps = MAX_EPOCHS * (len(X_train) // BATCH_SIZE + 1)
39
 
40
  def lr_schedule(current_step):
41
  factor = float(num_training_steps - current_step) / float(max(1, num_training_steps))
 
35
  MAX_EPOCHS = 5
36
  BATCH_SIZE = 12
37
 
38
+ num_training_steps = MAX_EPOCHS * (584 // BATCH_SIZE + 1)
39
 
40
  def lr_schedule(current_step):
41
  factor = float(num_training_steps - current_step) / float(max(1, num_training_steps))