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 12:56:21 +02:00
parent d76512c266
commit c9d2571bf3

View File

@ -41,7 +41,7 @@ output_dim = 1
model = LogisticRegressionModel(input_dim, output_dim)
pred = model(xTest)
pred = model(fTest)
accuracy = accuracy_score(fTest, np.argmax(pred.detach(), axis = 1))
print(f'Accuracy: {accuracy}')