Commit 0c7242f
committed
feat(sphere): integrate generalized primitives from core/samplers
- compute.rs: Re-export text primitives from thrml_core::text
(RollingHash, ngram_hashes, jaccard_similarity, TextSimilarityConfig)
- evaluation.rs: Document availability of thrml_core::metrics
for general-purpose retrieval metrics
- lib.rs: Re-export generalized APIs for sphere users:
- thrml_core::metrics: evaluate_retrieval, RetrievalMetrics
- thrml_core::text: ngram_hashes, RollingHash, TextSimilarityConfig
- thrml_samplers::maxcut: maxcut_gibbs, maxcut_multistart, cut_value
Sphere retains its domain-specific implementations (NavigationMetrics,
cpu_ising, substring) while exposing lower-level primitives for users
who need them.
Also fixes: duplicate GpuInfo re-export in thrml-core/src/lib.rs1 parent bc1c7c4 commit 0c7242f
File tree
4 files changed
+29
-4
lines changed- crates
- thrml-core/src
- thrml-sphere/src
4 files changed
+29
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
| |||
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
0 commit comments