Skip to content

I have a question about Distance Weighted Sampling. #1

@wjddyd66

Description

@wjddyd66

First of all, thank you very much for coding as Pytorch.

I have a question in that code.

I have a question about the expression for getting log_weights in the Distance Weighted Sampling Class.

First, in this paper, the expression is written as follows:

The current code is as follows.
log_weights = ((2.0 - float(d)) * distance.log() - (float(d-3)/2)torch.log(torch.clamp(1.0 - 0.25(distance*distance), min=1e-8)))

Is this code correct to code the formula for giving weight?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions