File size: 1,614 Bytes
2d13eb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[
  {
    "function_name": "get_r_score",
    "file_path": "src.calibrated_thresh.py",
    "function_calls": [
      {
        "function_call_name": "sorted",
        "functionality": "Return a new sorted list from the items in iterable.",
        "input": "iterable of floats (subclaim scores with noise)",
        "output": "sorted list of scores",
        "location_or_namespace": "builtins"
      },
      {
        "function_call_name": "np.mean",
        "functionality": "Compute the arithmetic mean along the specified axis.",
        "input": "list of booleans indicating entailed subclaims",
        "output": "float (fraction of entailed subclaims)",
        "location_or_namespace": "numpy"
      }
    ]
  },
  {
    "function_name": "compute_threshold",
    "file_path": "src.calibrated_thresh.py",
    "function_calls": [
      {
        "function_call_name": "get_r_score",
        "functionality": "",
        "input": "entry, confidence_method, a",
        "output": "float r_score",
        "location_or_namespace": "src.calibrated_thresh.py"
      },
      {
        "function_call_name": "ceil",
        "functionality": "Return the ceiling of x as an Integral.",
        "input": "float (quantile index expression)",
        "output": "int (ceiling of quantile index)",
        "location_or_namespace": "math"
      },
      {
        "function_call_name": "sorted",
        "functionality": "Return a new sorted list from the items in iterable.",
        "input": "list of r_scores",
        "output": "sorted list of scores",
        "location_or_namespace": "builtins"
      }
    ]
  }
]