Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -359,15 +359,16 @@ print("trained!!!!!")
|
|
359 |
|
360 |
##################
|
361 |
#Evaluate the new Model auf evual dataset
|
362 |
-
print ("
|
363 |
-
|
364 |
-
|
365 |
print("Done Eval")
|
366 |
|
367 |
print('################ Test Trained Model ###################')
|
368 |
-
|
369 |
-
|
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 |
###################################################
|