mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update error code
This commit is contained in:
parent
e1be80e3ec
commit
872121955c
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user