Update error code

This commit is contained in:
Ines Montani 2019-06-20 10:35:51 +02:00
parent e1be80e3ec
commit 872121955c
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ def get_vectors_loss(ops, docs, prediction, objective="L2"):
elif objective == "cosine":
loss, d_target = get_cossim_loss(prediction, target)
else:
raise ValueError(Errors.E139.format(loss_func=objective))
raise ValueError(Errors.E142.format(loss_func=objective))
return loss, d_target