Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show TopK Diff in detailed example analysis #17

Open
bhoov opened this issue Jun 28, 2021 · 0 comments
Open

Show TopK Diff in detailed example analysis #17

bhoov opened this issue Jun 28, 2021 · 0 comments
Assignees

Comments

@bhoov
Copy link
Collaborator

bhoov commented Jun 28, 2021

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(),
            ),
        },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants