Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 0f367f8

Browse files
committed
nan instead of 0s
1 parent 8fcce50 commit 0f367f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/asciidoc/similarity-cosine.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The procedures parallelize the computation and are therefore more appropriate fo
2929

3030
Cosine similarity is only calculated over non-NULL dimensions.
3131
When calling the function, we should provide lists that contain the overlapping items.
32-
The procedures expect to receive the same length lists for all items, so we need to pad those lists with 0s where necessary.
32+
The procedures expect to receive the same length lists for all items, so we need to pad those lists with `algo.NaN()` where necessary.
3333

3434
// end::explanation[]
3535

doc/asciidoc/similarity-euclidean.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The procedures parallelize the computation and are therefore more appropriate fo
3030

3131
Euclidean similarity is only calculated over non-NULL dimensions.
3232
When calling the function, we should provide lists that contain the overlapping items.
33-
The procedures expect to receive the same length lists for all items, so we need to pad those lists with 0s where necessary.
33+
The procedures expect to receive the same length lists for all items, so we need to pad those lists with `algo.NaN()` where necessary.
3434

3535
// end::explanation[]
3636

doc/asciidoc/similarity-pearson.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The procedures parallelize the computation and are therefore more appropriate fo
2828

2929
Pearson similarity is only calculated over non-NULL dimensions.
3030
When calling the function, we should provide lists that contain the overlapping items.
31-
The procedures expect to receive the same length lists for all items, so we need to pad those lists with 0s where necessary.
31+
The procedures expect to receive the same length lists for all items, so we need to pad those lists with `algo.NaN()` where necessary.
3232

3333
// end::explanation[]
3434

0 commit comments

Comments
 (0)