add eval script
Some checks failed
s440058-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
piotr6789 2021-05-24 13:12:18 +02:00
parent 0df7d2d8cf
commit 0bd1982754

View File

@ -47,7 +47,7 @@ model = LogisticRegressionModel(input_dim, output_dim)
pred = model(fTest)
accuracy = accuracy_score(tTest, np.argmax(pred.detach().numpy(), axis = 1))
f1 = f1_score(tTest, np.argmax(pred.detach().numpy(), axis = 1, average = None))
f1 = f1_score(tTest, np.argmax(pred.detach().numpy(), axis = 1), average = None)
rmse = mean_squared_error(tTest, np.argmax(pred.detach().numpy()))
print(f'Accuracy: {accuracy}')