Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Valdez
4e7a28ce7e
Merge 0a623bcb89 into fb54d8b549 2023-05-22 17:40:07 -05:00
Daniel Valdez
0a623bcb89 Grammar fix in Metric.scala file 2023-03-31 23:30:40 -06:00

View File

@ -178,7 +178,7 @@ case object InnerProduct
Success(InnerProductDistance(cosineDistance.distance.toFloat))
case distance =>
Failure(
new IllegalArgumentException(s"Expected a inner product distance but got $distance")
new IllegalArgumentException(s"Expected an inner product distance but got $distance")
)
}
}
@ -254,7 +254,7 @@ case object Edit extends Metric[EditDistance] with Injection[EditDistance, Servi
Success(EditDistance(cosineDistance.distance.toFloat))
case distance =>
Failure(
new IllegalArgumentException(s"Expected a inner product distance but got $distance")
new IllegalArgumentException(s"Expected an inner product distance but got $distance")
)
}
}