janus.metrics.metric#
Attributes#
Functions#
|
Returns a decorator to add a given metric to the cli |
|
|
|
Module Contents#
- janus.metrics.metric.log#
- janus.metrics.metric.metric(name=None, help=None, use_reference=True)#
Returns a decorator to add a given metric to the cli
Metrics must follow the format (src_str, cmp_str, **other_params)
- janus.metrics.metric.apply_function_pairs(pairs, function, progress, language, llm, token_limit, model_cost, *args, **kwargs)#
- janus.metrics.metric.apply_function_strings(strings, function, progress, language, llm, token_limit, model_cost, *args, **kwargs)#