DistanceWeightedSampling
DistanceWeightedSampling copied to clipboard
I have a question about Distance Weighted Sampling.
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?: