-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using new Scala 3 language features (#682)
- Loading branch information
1 parent
fab849a
commit 705749d
Showing
44 changed files
with
122 additions
and
148 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|Model|Parameters|Recall|Queries per Second| | ||
|---|---|---|---| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=500 probes=0|0.378|383.334| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=1000 probes=0|0.446|324.105| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=500 probes=3|0.635|304.168| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=1000 probes=3|0.716|262.273| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=500 probes=0|0.767|339.240| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=1000 probes=0|0.847|291.800| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=500 probes=3|0.921|232.473| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=1000 probes=3|0.960|206.758| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=500 probes=0|0.379|383.178| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=1000 probes=0|0.447|324.668| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=500 probes=3|0.635|293.685| | ||
|eknn-l2lsh|L=100 k=4 w=1024 candidates=1000 probes=3|0.717|261.210| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=500 probes=0|0.767|334.495| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=1000 probes=0|0.847|289.825| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=500 probes=3|0.922|228.624| | ||
|eknn-l2lsh|L=100 k=4 w=2048 candidates=1000 probes=3|0.960|204.063| |
16 changes: 2 additions & 14 deletions
16
elastiknn-api4s/src/main/scala/com/klibisz/elastiknn/api/Similarity.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
package com.klibisz.elastiknn.api | ||
|
||
sealed trait Similarity | ||
|
||
object Similarity { | ||
case object Cosine extends Similarity | ||
|
||
case object Hamming extends Similarity | ||
|
||
case object Jaccard extends Similarity | ||
|
||
case object L1 extends Similarity | ||
|
||
case object L2 extends Similarity | ||
|
||
val values: Seq[Similarity] = Vector(Cosine, Jaccard, Hamming, L1, L2) | ||
enum Similarity { | ||
case Cosine, Hamming, Jaccard, L1, L2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...iknn-client-elastic4s/src/main/scala/com/klibisz/elastiknn/client/ElastiknnRequests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.