-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18891: Adds end-to-end surprisal as distance to all distance opcodes …
…and queries, MINOR (#54)
- Loading branch information
1 parent
50de95f
commit aaa27bc
Showing
12 changed files
with
265 additions
and
214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,4 @@ | ||
(seq | ||
(create_entities "BoxConvictionTestContainer" (null) ) | ||
(print "17 " (generalized_distance (null) (list "nominal_numeric") (list 1) (null) 1 (list 1 2 3) (list 10 2 4) ) "\n") | ||
|
||
(create_entities (list "BoxConvictionTestContainer" "vert0") (lambda | ||
(null ##x 0 ##y 0 ##weight 2) | ||
) ) | ||
|
||
(create_entities (list "BoxConvictionTestContainer" "vert1") (lambda | ||
(null ##x 0 ##y 1 ##weight 1) | ||
) ) | ||
|
||
(create_entities (list "BoxConvictionTestContainer" "vert2") (lambda | ||
(null ##x 1 ##y 0 ##weight 1) | ||
) ) | ||
|
||
(create_entities (list "BoxConvictionTestContainer" "vert3") (lambda | ||
(null ##x 2 ##y 1 ##weight 1) | ||
) ) | ||
|
||
;should print: | ||
;dc: (list | ||
;(list "vert0" "vert1" "vert2" "vert3") | ||
;(list 1 1 1 1.4142135623730951) | ||
;) | ||
(print "dc: " (compute_on_contained_entities "BoxConvictionTestContainer" (list | ||
(compute_entity_distance_contributions 1 (list "x" "y") (list "vert3") (null) (null) (null) (null) 2.0 -1 (null) "fixed_seed" (null) "recompute_precise" (true)) | ||
))) | ||
) |
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.