Spaces:
Running
Running
update namespace for tests
Browse files
tests.py
CHANGED
@@ -6,7 +6,7 @@ solution_sample2 = json.load(open("test_examples/solutions_problem_2.json", "r")
|
|
6 |
single_solutions = [solution_sample1[:1], solution_sample2[:1]]
|
7 |
multiple_solutions = [solution_sample1[:3], solution_sample2[:3]]
|
8 |
|
9 |
-
metric = load("
|
10 |
result_1 = metric.compute(predictions=single_solutions, level="all")
|
11 |
result_2 = metric.compute(predictions=multiple_solutions, level="all", k_list=[1, 2, 3])
|
12 |
|
|
|
6 |
single_solutions = [solution_sample1[:1], solution_sample2[:1]]
|
7 |
multiple_solutions = [solution_sample1[:3], solution_sample2[:3]]
|
8 |
|
9 |
+
metric = load("codeparrot/apps_metric")
|
10 |
result_1 = metric.compute(predictions=single_solutions, level="all")
|
11 |
result_2 = metric.compute(predictions=multiple_solutions, level="all", k_list=[1, 2, 3])
|
12 |
|