文件历史

4 次代码提交

作者 SHA1 备注 提交日期
Elías Snorrason 4388992862 Remove unnecessary warnings during KNN graph correction (#1129) 2024-05-24 14:34:20 +00:00
Elías Snorrason 25b7aaba7e Improve KNN Graph Construction for Handling Exact Duplicates and Numerical Precision (#1119)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2024-05-24 14:04:53 +00:00
Elías Snorrason 71ba4b3209 Add a knn module (#1117)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2024-05-14 13:59:15 -04:00
Elías Snorrason 4ce9f771c8 Unify softmax implementations (#826)
* unify softmax implementations

* Refine mypy type hint in _set_fine_search_range function

- Update type hint for `min_entropy_ind` from built-in `int` to `np.intp`.
  - This refinement addresses a type compatibility warning.
  - `np.intp` is the integer type used by numpy for indexing and can differ in size from the built-in Python `int` depending on the platform (32-bit vs 64-bit).
  - Mypy highlighted this type hint discrepancy.

* add unit tests for softmax

---------

Co-authored-by: Hui Wen <45724323+huiwengoh@users.noreply.github.com>
2023-08-30 00:22:05 +00:00