Update error code

This commit is contained in:
Ines Montani 2019-06-20 10:35:51 +02:00
parent e1be80e3ec
commit 872121955c

View File

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