alexkueck commited on
Commit
c56cd68
·
1 Parent(s): e752ad6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -359,15 +359,16 @@ print("trained!!!!!")
359
 
360
  ##################
361
  #Evaluate the new Model auf evual dataset
362
- print ("################################")
363
- print("Evaluate:")
364
- trainer.evaluate(eval_dataset=lm_datasets["test"])
365
  print("Done Eval")
366
 
367
  print('################ Test Trained Model ###################')
368
- #predictions = trainer.predict(lm_datasets["test"])
369
- #preds = np.argmax(predictions.predictions, axis=-1)
370
-
 
371
 
372
 
373
  ###################################################
 
359
 
360
  ##################
361
  #Evaluate the new Model auf evual dataset
362
+ print ("#################Evaluate:#################")
363
+ loss, accuracy = trainer.evaluate(eval_dataset=lm_datasets["test"])
364
+ print(loss, accuracy)
365
  print("Done Eval")
366
 
367
  print('################ Test Trained Model ###################')
368
+ predictions = trainer.predict(lm_datasets["test"])
369
+ preds = np.argmax(predictions.predictions, axis=-1)
370
+ print('###########preds##################')
371
+ print(preds)
372
 
373
 
374
  ###################################################