Skip to content

A question about code #2

@pinglanjiu

Description

@pinglanjiu
     if(score_a > score_v) and k > 0.04:
        gap = score_a - score_v
        gap = tanh(score_a - score_v)
        beta = 0.95 * torch.exp(gap)
        beta2 = 0
    elif(score_v < score_a) and k > 0.04:
        gap = score_v - score_a
        gap = tanh(score_v - score_a)
        beta2 = 0.1 * torch.exp(gap)
        beta = 0
    else:
        beta = 0
        beta2 = 0

In your published code, the if statement above seems to have an issue; the two conditions appear to be the same, right? score_a > score_v

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions