-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #468 from harena-lab/development
Development
- Loading branch information
Showing
11 changed files
with
535 additions
and
212 deletions.
There are no files selected for viewing
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,8 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../js/metrics.js"></script> | ||
</head> | ||
<body> | ||
<textarea id="console" rows="50" style="width:100%" readonly></textarea> | ||
<script type="text/javascript" src="metrics.js"> | ||
<script type="text/javascript" src="test-metrics.js"> | ||
</script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
src/adonisjs/public/editor/annotate/metrics/test-metrics.js
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
document.querySelector('#console').value = '' | ||
|
||
function present (output) { | ||
document.querySelector('#console').value += output + '\n' | ||
} | ||
|
||
present(JSON.stringify(AnnotationMetrics.i._selfOrderCount( | ||
[[1, 10], [2, 20], [1, 20], [2, 30]], present))) | ||
present(JSON.stringify(AnnotationMetrics.i._selfOrderCount( | ||
[[1, 10], [2, 20], [1, 25], [2, 30]], present))) | ||
present(JSON.stringify(AnnotationMetrics.i._selfOrderCount( | ||
[[1, 10], [2, 20], [1, 20], [3, 20], [1, 30], [2, 30], [3, 30]], present))) | ||
present(JSON.stringify(AnnotationMetrics.i._selfOrderCount( | ||
[[2, 71], [2, 96], [3, 98], [2, 100], [5, 120], [5, 130], [5, 135], [3, 140], [5, 180]], present))) | ||
present(JSON.stringify(AnnotationMetrics.i._selfOrderCount( | ||
[[5, 135], [2, 100], [2, 71], [2, 96], [5, 130], [3, 98], [5, 180], [5, 120], [3, 140]], present))) | ||
present(JSON.stringify(AnnotationMetrics.i._selfOrderCount( | ||
[[2, 71], [2, 96], [3, 98], [2, 98], [5, 98], [5, 130], [5, 135], [3, 140], [5, 180]], present))) | ||
|
||
present(AnnotationMetrics.i._clusteringFreeRecall( | ||
[[2, 1], [4, 2], [4, 3], [3, 4], [2, 5], [3, 6], [1, 7], [4, 8], [4, 9]], present | ||
)) | ||
present(AnnotationMetrics.i._clusteringFreeRecall( | ||
[[3, 1], [4, 2], [4, 3], [3, 4], [1, 5], [1, 6], [3, 7], [1, 8], [1, 9], [2, 10], [2, 11], [2, 12], [4, 13], [4, 14], [3, 15]], present | ||
)) | ||
present(AnnotationMetrics.i._clusteringFreeRecall( | ||
[[2, 1], [2, 2], [3, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [3, 10], [2, 11], [1, 12], [4, 13], [4, 14], [4, 15], [4, 16], [2, 17], [2, 18], [3, 19], [1, 20]], present | ||
)) | ||
present(AnnotationMetrics.i._clusteringFreeRecall( | ||
[[5, 135], [2, 100], [2, 71], [2, 96], [5, 130], [3, 98], [5, 180], [5, 120], [3, 140]], present)) | ||
present(AnnotationMetrics.i._clusteringFreeRecall( | ||
[[2, 71], [2, 96], [3, 98], [2, 98], [5, 98], [5, 130], [5, 135], [3, 140], [5, 180]], present)) | ||
present(AnnotationMetrics.i._clusteringFreeRecall( | ||
[[2, 71], [2, 96], [3, 98], [2, 98], [5, 98], [7,98], [5, 130], [5, 135], [3, 140], [5, 180]], present)) |
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.