OnDA icon indicating copy to clipboard operation
OnDA copied to clipboard

Question about Equ. (2)

Open yuan-zm opened this issue 2 years ago • 0 comments

Hi @theo2021 ,

For Eq. 2, I want to know why you use the global variance rather than the variance of each prototype. I.e., .sum(axis=0) in below function.

` def global_var(self):

    global_squared_mean = (
        self.squared_mean.T * self.counter / self.counter.sum()
    ).T.sum(axis=0)

    global_mean = (self.prototypes.T * self.counter / self.counter.sum()).T.sum(
        axis=0
    )

    return torch.sqrt(global_squared_mean - global_mean**2)

`

yuan-zm avatar Nov 23 '22 11:11 yuan-zm