update dllib-mlflow.py
Some checks failed
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head There was a failure building this commit

This commit is contained in:
Maciej Czajka 2022-05-11 15:15:22 +02:00
parent 851049fb38
commit 73bd0a68c7

View File

@ -324,7 +324,8 @@ def my_main(epochs):
# save model
torch.save(model, "games_model.pkl")
return accuracy_score(labels_test_g, np.argmax(pred, axis=1))
acc = accuracy_score(labels_test_g, np.argmax(pred, axis=1))
return acc
with mlflow.start_run() as run: