LMdiff icon indicating copy to clipboard operation
LMdiff copied to clipboard

Show TopK Diff in detailed example analysis

Open bhoov opened this issue 4 years ago • 0 comments

image

Should also allow Top-10 Diff, corresponding to the search results

image

It is returned as part of the following packet:

    return {
        "text": text,
        "tokens": tokens,
        "m1": {
            ...
        },
        "m2": {
            ...
        },
        "diff": {
            "rank": ...,
            "prob": ...,
            "rank_clamp": ...,
            "topk": topk_token_diff(
                parsed_output1.topk_token_ids.tolist(),
                parsed_output2.topk_token_ids.tolist(),
            ),
        },

bhoov avatar Jun 28 '21 14:06 bhoov