Skip to content

Commit 4d8fd87

Browse files
test: add tests for `ml/strided/dkmeans-init-plus-plus
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 910e515 commit 4d8fd87

13 files changed

Lines changed: 1109 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"order": "column-major",
3+
"out": [
4+
0.0,
5+
0.0,
6+
9999.0,
7+
9999.0,
8+
0.0,
9+
0.0
10+
],
11+
"k": 2,
12+
"M": 4,
13+
"N": 2,
14+
"strideO1": 1,
15+
"strideO2": 4,
16+
"offsetO": 0,
17+
"LDO": 4,
18+
"out_mat": [
19+
[ 0.0, 0.0 ],
20+
[ 0.0, 0.0 ]
21+
],
22+
"X": [
23+
1.0,
24+
2.0,
25+
5.0,
26+
0.0,
27+
3.0,
28+
4.0,
29+
6.0,
30+
0.0
31+
],
32+
"strideX1": 1,
33+
"strideX2": 4,
34+
"offsetX": 0,
35+
"LDX": 4,
36+
"X_mat": [
37+
[ 1.0, 3.0 ],
38+
[ 2.0, 4.0 ],
39+
[ 5.0, 6.0 ],
40+
[ 0.0, 0.0 ]
41+
],
42+
"metric": "sqeuclidean",
43+
"trials": 2,
44+
"seed": 44,
45+
"expected": [
46+
1.0,
47+
5.0,
48+
9999.0,
49+
9999.0,
50+
3.0,
51+
6.0
52+
]
53+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"order": "column-major",
3+
"out": [
4+
0.0,
5+
9999.0,
6+
0.0,
7+
9999.0,
8+
9999.0,
9+
9999.0,
10+
0.0,
11+
9999.0,
12+
0.0
13+
],
14+
"k": 2,
15+
"M": 3,
16+
"N": 2,
17+
"strideO1": 2,
18+
"strideO2": 6,
19+
"offsetO": 0,
20+
"LDO": 3,
21+
"out_mat": [
22+
[ 0.0, 0.0 ],
23+
[ 0.0, 0.0 ]
24+
],
25+
"X": [
26+
1.0,
27+
9999.0,
28+
2.0,
29+
9999.0,
30+
0.0,
31+
9999.0,
32+
3.0,
33+
9999.0,
34+
4.0,
35+
9999.0,
36+
0.0,
37+
9999.0
38+
],
39+
"strideX1": 2,
40+
"strideX2": 6,
41+
"offsetX": 0,
42+
"LDX": 3,
43+
"X_mat": [
44+
[ 1.0, 3.0 ],
45+
[ 2.0, 4.0 ],
46+
[ 0.0, 0.0 ]
47+
],
48+
"metric": "sqeuclidean",
49+
"trials": 2,
50+
"seed": 44,
51+
"expected": [
52+
1.0,
53+
9999.0,
54+
0.0,
55+
9999.0,
56+
9999.0,
57+
9999.0,
58+
3.0,
59+
9999.0,
60+
0.0
61+
]
62+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"order": "row-major",
3+
"out": [
4+
0.0,
5+
9999.0,
6+
0.0,
7+
9999.0,
8+
0.0,
9+
9999.0,
10+
0.0
11+
],
12+
"k": 2,
13+
"M": 3,
14+
"N": 2,
15+
"strideO1": 4,
16+
"strideO2": 2,
17+
"offsetO": 0,
18+
"LDO": 2,
19+
"out_mat": [
20+
[ 0.0, 0.0 ],
21+
[ 0.0, 0.0 ]
22+
],
23+
"X": [
24+
1.0,
25+
9999.0,
26+
2.0,
27+
9999.0,
28+
3.0,
29+
9999.0,
30+
4.0,
31+
9999.0,
32+
0.0,
33+
9999.0,
34+
0.0,
35+
9999.0
36+
],
37+
"strideX1": 4,
38+
"strideX2": 2,
39+
"offsetX": 0,
40+
"LDX": 2,
41+
"X_mat": [
42+
[ 1.0, 2.0 ],
43+
[ 3.0, 4.0 ],
44+
[ 0.0, 0.0 ]
45+
],
46+
"metric": "sqeuclidean",
47+
"trials": 2,
48+
"seed": 44,
49+
"expected": [
50+
1.0,
51+
9999.0,
52+
2.0,
53+
9999.0,
54+
3.0,
55+
9999.0,
56+
4.0
57+
]
58+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"order": "column-major",
3+
"out": [
4+
0.0,
5+
0.0,
6+
9999.0,
7+
0.0,
8+
0.0
9+
],
10+
"k": 2,
11+
"M": 3,
12+
"N": 2,
13+
"strideO1": 1,
14+
"strideO2": -3,
15+
"offsetO": 3,
16+
"LDO": 3,
17+
"out_mat": [
18+
[ 0.0, 0.0 ],
19+
[ 0.0, 0.0 ]
20+
],
21+
"X": [
22+
3.0,
23+
4.0,
24+
0.0,
25+
1.0,
26+
2.0,
27+
0.0
28+
],
29+
"strideX1": 1,
30+
"strideX2": -3,
31+
"offsetX": 3,
32+
"LDX": 3,
33+
"X_mat": [
34+
[ 1.0, 3.0 ],
35+
[ 2.0, 4.0 ],
36+
[ 0.0, 0.0 ]
37+
],
38+
"metric": "sqeuclidean",
39+
"trials": 2,
40+
"seed": 44,
41+
"expected": [
42+
3.0,
43+
0.0,
44+
9999.0,
45+
1.0,
46+
0.0
47+
]
48+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"order": "row-major",
3+
"out": [
4+
9999.0,
5+
9999.0,
6+
0.0,
7+
0.0,
8+
0.0,
9+
0.0
10+
],
11+
"k": 2,
12+
"M": 3,
13+
"N": 2,
14+
"strideO1": -2,
15+
"strideO2": 1,
16+
"offsetO": 4,
17+
"LDO": 2,
18+
"out_mat": [
19+
[ 0.0, 0.0 ],
20+
[ 0.0, 0.0 ]
21+
],
22+
"X": [
23+
0.0,
24+
0.0,
25+
3.0,
26+
4.0,
27+
1.0,
28+
2.0
29+
],
30+
"strideX1": -2,
31+
"strideX2": 1,
32+
"offsetX": 4,
33+
"LDX": 2,
34+
"X_mat": [
35+
[ 1.0, 2.0 ],
36+
[ 3.0, 4.0 ],
37+
[ 0.0, 0.0 ]
38+
],
39+
"metric": "sqeuclidean",
40+
"trials": 2,
41+
"seed": 44,
42+
"expected": [
43+
9999.0,
44+
9999.0,
45+
3.0,
46+
4.0,
47+
1.0,
48+
2.0
49+
]
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"order": "column-major",
3+
"out": [
4+
9999.0,
5+
0.0,
6+
0.0,
7+
9999.0,
8+
0.0,
9+
0.0
10+
],
11+
"k": 2,
12+
"M": 3,
13+
"N": 2,
14+
"strideO1": -1,
15+
"strideO2": -3,
16+
"offsetO": 5,
17+
"LDO": 3,
18+
"out_mat": [
19+
[ 0.0, 0.0 ],
20+
[ 0.0, 0.0 ]
21+
],
22+
"X": [
23+
0.0,
24+
4.0,
25+
3.0,
26+
0.0,
27+
2.0,
28+
1.0
29+
],
30+
"strideX1": -1,
31+
"strideX2": -3,
32+
"offsetX": 5,
33+
"LDX": 3,
34+
"X_mat": [
35+
[ 1.0, 3.0 ],
36+
[ 2.0, 4.0 ],
37+
[ 0.0, 0.0 ]
38+
],
39+
"metric": "sqeuclidean",
40+
"trials": 2,
41+
"seed": 44,
42+
"expected": [
43+
9999.0,
44+
0.0,
45+
3.0,
46+
9999.0,
47+
0.0,
48+
1.0
49+
]
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"order": "row-major",
3+
"out": [
4+
9999.0,
5+
9999.0,
6+
0.0,
7+
0.0,
8+
0.0,
9+
0.0
10+
],
11+
"k": 2,
12+
"M": 3,
13+
"N": 2,
14+
"strideO1": -2,
15+
"strideO2": -1,
16+
"offsetO": 5,
17+
"LDO": 2,
18+
"out_mat": [
19+
[ 0.0, 0.0 ],
20+
[ 0.0, 0.0 ]
21+
],
22+
"X": [
23+
0.0,
24+
0.0,
25+
4.0,
26+
3.0,
27+
2.0,
28+
1.0
29+
],
30+
"strideX1": -2,
31+
"strideX2": -1,
32+
"offsetX": 5,
33+
"LDX": 2,
34+
"X_mat": [
35+
[ 1.0, 2.0 ],
36+
[ 3.0, 4.0 ],
37+
[ 0.0, 0.0 ]
38+
],
39+
"metric": "sqeuclidean",
40+
"trials": 2,
41+
"seed": 44,
42+
"expected": [
43+
9999.0,
44+
9999.0,
45+
4.0,
46+
3.0,
47+
2.0,
48+
1.0
49+
]
50+
}

0 commit comments

Comments
 (0)