(d:list)
| 86 | [ref_ans,ans]) |
| 87 | return qid,ret |
| 88 | def get_most_preferred(d:list)->np.ndarray: |
| 89 | if np.iterable(d): |
| 90 | d = np.asanyarray(d) |
| 91 | bins = np.bincount(d) |
| 92 | max_val = np.max(bins) |
| 93 | argmax = np.where(max_val==bins)[0] |
| 94 | return argmax |
| 95 | else: |
| 96 | return np.asarray([d]) |
| 97 | |
| 98 | print('Evaluating...') |
| 99 | prefer_dict = {} |
no outgoing calls
no test coverage detected