add init
Browse files
README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
---
|
2 |
title: nl2bash_m
|
3 |
-
datasets:
|
4 |
-
|
5 |
tags:
|
6 |
- evaluate
|
|
|
1 |
---
|
2 |
title: nl2bash_m
|
|
|
3 |
-
|
4 |
tags:
|
5 |
- evaluate
|
tests.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
test_cases = [
|
2 |
+
{
|
3 |
+
"predictions": [0, 0],
|
4 |
+
"references": [1, 1],
|
5 |
+
"result": {"metric_score": 0}
|
6 |
+
},
|
7 |
+
{
|
8 |
+
"predictions": [1, 1],
|
9 |
+
"references": [1, 1],
|
10 |
+
"result": {"metric_score": 1}
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"predictions": [1, 0],
|
14 |
+
"references": [1, 1],
|
15 |
+
"result": {"metric_score": 0.5}
|
16 |
+
}
|
17 |
+
]
|