MCPcopy Index your code
hub / github.com/evalplus/evalplus / make_line

Function make_line

tools/render.py:91–100  ·  view source on GitHub ↗
(summary, amax, ap=False)

Source from the content-addressed store, hash-verified

89 return r"\aplus{" + s + r"}"
90
91 def make_line(summary, amax, ap=False):
92 pkvals = [f"{v[amax[i]]:.1f}" for i, v in enumerate(summary.values())]
93 if ap:
94 pkvals = [aplus(v) for v in pkvals]
95 return (
96 " & ".join(pkvals)
97 + " & "
98 + " & ".join([TEXTTEMPS[i] for i in amax])
99 + r" \\"
100 )
101
102 print("======== LaTeX Table Ingredent ========")
103 argmax = [np.argmax(v) for v in before_summary.values()]

Callers 1

texprintFunction · 0.85

Calls 1

aplusFunction · 0.85

Tested by

no test coverage detected