Skip to content

Commit 63f86f7

Browse files
authored
Add with_top_k to CosineSimilarity (#332)
* Implement cosine similarity and cosinepair * formatting * fix clippy * Add top k CosinePair * fix distance computation * set min similarity for constant zeros * bump version to 0.4.5
1 parent e633afa commit 63f86f7

File tree

2 files changed

+368
-76
lines changed

2 files changed

+368
-76
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "smartcore"
33
description = "Machine Learning in Rust."
44
homepage = "https://smartcorelib.org"
5-
version = "0.4.4"
5+
version = "0.4.5"
66
authors = ["smartcore Developers"]
77
edition = "2021"
88
license = "Apache-2.0"
@@ -28,6 +28,7 @@ num = "0.4"
2828
rand = { version = "0.8.5", default-features = false, features = ["small_rng"] }
2929
rand_distr = { version = "0.4", optional = true }
3030
serde = { version = "1", features = ["derive"], optional = true }
31+
ordered-float = "*"
3132

3233
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
3334
typetag = { version = "0.2", optional = true }

0 commit comments

Comments
 (0)